[cdi-dev] [JBoss JIRA] (CDI-280) clarify usage of 'bean' term usage in the spec

Mark Struberg (JIRA) issues at jboss.org
Sat Mar 8 05:48:33 EST 2014


    [ https://issues.jboss.org/browse/CDI-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12951325#comment-12951325 ] 

Mark Struberg commented on CDI-280:
-----------------------------------

The terms used and defined in CDI 1.0 shall not be changed imo.

Bean Class:  that's ok and the same as you meant.
Contextual Instance: The 'singleton' instance  created by the Bean#create() and stored in the Context
Contextual Reference: The NormalScope proxy for the Contextual Reference. Not to confuse with the interceptor/decorator proxy which may also exist for non-normalscoped beans.
I don't fully agree with Martin regarding 'required type'. This only covers the java.lang.reflect.Type aspect imo but does not cover the qualifiers, right? Or does it?
                
> clarify usage of 'bean' term usage in the spec
> ----------------------------------------------
>
>                 Key: CDI-280
>                 URL: https://issues.jboss.org/browse/CDI-280
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>            Reporter: Mark Struberg
>            Assignee: Antoine Sabot-Durand
>              Labels: CDI_api_chge, CDI_spec_chge, Ready_to_fix
>             Fix For: 1.2 Proposed
>
>
> We should go to the spec and look up all 'bean' words as they are 5 different meaning the word 'bean' is used for
> * The Bean<T> extends Contextual<T>. Should be referred as 'Bean' or 'CDI Bean'
> * The class which gets scanned. Should be referred as 'Bean Class' to
> * The instance stored in the context. Should be referred to as 'Contextual Instance'
> * The proxy for a Contextual Instance should be referred to as 'Contextual Reference'
> * The type of an injection point should be referred to as 'InjectionPoint Type'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list