[weld-dev] What is NonContextual?
Gavin King
gavin.king at gmail.com
Fri Oct 16 16:01:16 EDT 2009
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 at gmail.com> wrote:
> What the hell is NonContextual for and why are we not just using @New?!
>
> http://anonsvn.jboss.org/repos/weld/core/trunk/inject-tck-runner/src/test/java/org/jboss/weld/atinject/tck/Producers.java
>
> --
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>
--
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
More information about the weld-dev
mailing list