Skip to content

Commit

Permalink
Add a beans.xml file disabling CDI bean discovery to META-INF/ in the…
Browse files Browse the repository at this point in the history
… guava jar. See guava issue: https://code.google.com/p/guava-libraries/issues/detail?id=1433

-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=49166428
  • Loading branch information
cgdecker committed Jul 10, 2013
1 parent 3d1299c commit de8f4e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions guava/src/META-INF/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
bean-discovery-mode="none">
<!--
This file is here for bean-discovery-mode="none", which turns off CDI's behavior of assuming
that anything annotated with @Inject is a "bean" and must be instantiated. Guava just uses
@Inject for convenience. See: https://code.google.com/p/guava-libraries/issues/detail?id=1433
-->
</beans>

0 comments on commit de8f4e8

Please sign in to comment.