[cdi-dev] Regarding CDI-280 and beans terminology
Antoine Sabot-Durand
antoine at sabot-durand.net
Mon Mar 3 11:56:34 EST 2014
Le 3 mars 2014 à 17:39, Martin Kouba <mkouba at redhat.com> a écrit :
> Dne 3.3.2014 17:20, Antoine Sabot-Durand napsal(a):
>> Hi all,
>>
>> I really think we should work for terminology simplification but I
>> wonder if it’s realistic in our timeframe. According to me the easy
>> part is :
>>
>> - « Bean Class » for the class that gets Scanned : *Bean Class*
>> (_quite obvious_)
>> - « Bean Metadata for Bean<T> : *Bean Metadata* using « Bean » here is
>> confusing)
>> - « Required Type » for the type of injection type
>> - « Session Bean » for EJB bean
>>
>> Now the more complex part is for the biggest one. From my understanding
>> we have 2 concept with at least 3 different names :
>>
>> - Contextual Instance = Bean Instance = Bean
>> - Contextual Reference = Client Proxy = Bean Reference
>
> But contextual instance != bean instance as Contextual<T> != Bean<T>, right?
Good question but I think that Contextual<T> is called "Instance of contextual" in the Spec. But not clear. when reading 6.5.2 [1] a lot of things are mixed up
[1] http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#contextual_instance
>
>>
>> I I’m not wrong on this classification, we should really choose an
>> official name for these 2 concepts
>>
>> My personal choice would be « Bean Instance » and « Bean Reference »
>> with perhaps a link to contextual names in chapter 6.
>>
>> The term « Bean » could be reserved to mean one to the other when
>> difference is not relevant…
>>
>> What do you think ?
>>
>>
>> Antoine Sabot-Durand
>> ———————————————
>> Twitter : @antoine_sd
>> CDI co-spec lead & eco-system development
>> Agorava tech lead
>>
>>
>>
>> _______________________________________________
>> cdi-dev mailing list
>> cdi-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/cdi-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.jboss.org/pipermail/cdi-dev/attachments/20140303/0acae8ef/attachment.bin
More information about the cdi-dev
mailing list