[webbeans-dev] [TCK] Bean<T>#create() reference in the Spec?

Pete Muir pmuir at redhat.com
Mon Jan 19 09:44:42 EST 2009


https://jira.jboss.org/jira/browse/WBRI-103

On 19 Jan 2009, at 11:25, Mark Struberg wrote:

> Hi!
>
> I tried to run the TCK tests, e.g.
> DependentContextTest#testContextIsActiveDuringBeanCreation()
> and have a question regarding the call
> FoxRun foxRun = foxRunBean.create();
>
> I read through the Spec dated 20090116 and I cannot find any  
> create() with no argument for a Bean<T>.
>
> Section
>> 3.11. The Bean object for a bean
> references to
>> 6.1. The Contextual interface
>> public interface Contextual<T> {
>>    public T create(CreationalContext<T> creationalContext);
>>    public void destroy(T instance);
>> }
>
> and there is no non-arg create() function but only one with a  
> CreationalContext. Otoh you reference the Contextual.create() a few  
> times in section 6.2. I interpreted this as short form for the  
> method with CreationalContext but after I read the TCK I'm slightly  
> confused.
>
> Am I missing something?
>
> txs and LieGrue,
> strub
>
>
>
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev




More information about the weld-dev mailing list