public class SpiderAsAnimalProducer { @Produces public Animal makeASpider = new WolfSpider(); }
class Chicken { @Produces private Egg egg = new Egg(); }
@Produces public String destroy() { return "foo"; }
@Stateless public class VibratingSpiderImpl_Broken implements VibratingSpider { @Produces public Integer numberOfEggs = 5000; }
@Produces public String observe(@Observes String foo) { return "foo"; }
@AnotherDeploymentType public class OtherSpiderProducer { @Produces public Tarantula produceTarantula = new Tarantula(); }
@Produces public String dispose(@Disposes String foo) { return "foo"; }
@Produces public Ship produceShip() throws FooException { throw new FooException(); }
@Produces @Named("bestPupil") public Pupil getStarPupil() { return new Pupil(); }
@Produces public void observeInitialized(@Observes @Initialized Manager manager) { } }
@Produces public Waste getWaste() { return new Waste(getClassName()); }
@Produces @Dependent public Violation create() { return new Violation(); } }
@Specializes @Produces public Product getExpensiveGift() { // TODO Auto-generated method stub return super.getExpensiveGift(); }
@Produces @SessionScoped public Violation create(@Current Violation violation) { return violation; } }
@Specializes @Produces @AnotherDeploymentType public static Product getChair() { return new Product(); }
@Override @Specializes @Produces @AnotherDeploymentType public Product getExpensiveGift() { return new Product(); }
@Override @Produces @Specializes @AnotherDeploymentType public Product getExpensiveGift() { // TODO Auto-generated method stub return super.getExpensiveGift(); }
@Produces @SessionScoped public Violation2 create(@Current Violation violation) { return new Violation2(); } }
@Override @Produces @Specializes @Sparkly @AnotherDeploymentType public Product getExpensiveGift() { return new Necklace(); }