i.e. why is it not just:
public class Producers
{
@Produces @Drivers
public Seat produceAtDriversSeat()
{
return driversSeat.newInstance().produce().inject().get();
}
@Produces @BeanTypes(DriversSeat.class)
public DriversSeat produceDriversSeat(@New DriversSeat driversSeat)
{
return driversSeat;
}
@Produces @Named("spare") @Spare
public Tire produceAtNamedSpareTire(@New SpareTire spareTire)
{
return spareTire;
}
@Produces @BeanTypes(SpareTire.class)
public SpareTire produceSpareTire(@New SpareTire spareTire)
{
return spareTire;
}
}
On Fri, Oct 16, 2009 at 3:57 PM, Gavin King <gavin.king(a)gmail.com> wrote:
--
Gavin King
gavin.king(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org