Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to a newer javax.inject api and tck, various small cleanups
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@3824 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
26 changed files
with
103 additions
and
83 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
17 changes: 15 additions & 2 deletions
17
inject-tck-runner/src/test/java/org/jboss/webbeans/atinject/tck/DriversSeatProducer.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,18 +1,31 @@ | ||
package org.jboss.webbeans.atinject.tck; | ||
|
||
import javax.enterprise.inject.Produces; | ||
import javax.enterprise.inject.spi.BeanManager; | ||
import javax.enterprise.inject.spi.InjectionTarget; | ||
import javax.inject.Inject; | ||
|
||
import org.atinject.tck.auto.Drivers; | ||
import org.atinject.tck.auto.DriversSeat; | ||
import org.atinject.tck.auto.Seat; | ||
|
||
public class DriversSeatProducer | ||
{ | ||
|
||
private final InjectionTarget<DriversSeat> injectionTarget; | ||
private final BeanManager beanManager; | ||
|
||
@Inject | ||
public DriversSeatProducer(BeanManager beanManager) | ||
{ | ||
this.injectionTarget = beanManager.createInjectionTarget(beanManager.createAnnotatedType(DriversSeat.class)); | ||
this.beanManager = beanManager; | ||
} | ||
|
||
@Produces @Drivers | ||
public Seat produceDriversSeat(DriversSeat seat) | ||
public Seat produceDriversSeat() | ||
{ | ||
return seat; | ||
return injectionTarget.produce(beanManager.<DriversSeat>createCreationalContext(null)); | ||
} | ||
|
||
} |
17 changes: 15 additions & 2 deletions
17
inject-tck-runner/src/test/java/org/jboss/webbeans/atinject/tck/SpareTireProducer.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,18 +1,31 @@ | ||
package org.jboss.webbeans.atinject.tck; | ||
|
||
import javax.enterprise.inject.Produces; | ||
import javax.enterprise.inject.spi.BeanManager; | ||
import javax.enterprise.inject.spi.InjectionTarget; | ||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
|
||
import org.atinject.tck.auto.Tire; | ||
import org.atinject.tck.auto.accessories.SpareTire; | ||
|
||
public class SpareTireProducer | ||
{ | ||
|
||
private final InjectionTarget<SpareTire> injectionTarget; | ||
private final BeanManager beanManager; | ||
|
||
@Inject | ||
public SpareTireProducer(BeanManager beanManager) | ||
{ | ||
this.injectionTarget = beanManager.createInjectionTarget(beanManager.createAnnotatedType(SpareTire.class)); | ||
this.beanManager = beanManager; | ||
} | ||
|
||
@Produces @Named("spare") | ||
public Tire produceSpareTire(SpareTire spareTire) | ||
public Tire produceSpareTire() | ||
{ | ||
return spareTire; | ||
return injectionTarget.produce(beanManager.<SpareTire>createCreationalContext(null)); | ||
} | ||
|
||
} |
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
Oops, something went wrong.