Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
.../test/java/org/jboss/weld/test/unit/deployment/structure/nonTransitiveResolution/Bar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
package org.jboss.weld.test.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
import javax.enterprise.inject.New; | ||
import javax.enterprise.inject.spi.BeanManager; | ||
import javax.inject.Inject; | ||
|
||
public class Bar | ||
{ | ||
|
||
@Inject Foo foo; | ||
@Inject private Foo foo; | ||
|
||
// Inject the bean manager to make sure the bean is intranstive | ||
@Inject private BeanManager beanManager; | ||
|
||
// Inject the @New bean to make sure the bean is intranstive | ||
@Inject @New String str; | ||
|
||
public Foo getFoo() | ||
{ | ||
return foo; | ||
} | ||
|
||
public BeanManager getBeanManager() | ||
{ | ||
return beanManager; | ||
} | ||
|
||
} |
17 changes: 16 additions & 1 deletion
17
.../test/java/org/jboss/weld/test/unit/deployment/structure/nonTransitiveResolution/Foo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
package org.jboss.weld.test.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
import javax.enterprise.inject.New; | ||
import javax.enterprise.inject.spi.BeanManager; | ||
import javax.inject.Inject; | ||
|
||
public class Foo | ||
{ | ||
|
||
|
||
// Inject the bean manager to make sure the bean is intranstive | ||
@Inject private BeanManager beanManager; | ||
|
||
// Inject the @New bean to make sure the bean is intranstive | ||
@Inject @New String str; | ||
|
||
public BeanManager getBeanManager() | ||
{ | ||
return beanManager; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters