[ 
https://issues.apache.org/jira/browse/DELTASPIKE-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved DELTASPIKE-120.
--------------------------------------

    Resolution: Fixed

implemented
                
> BeanProvider: add convenience methods without the 'optional' flag
> -----------------------------------------------------------------
>
>                 Key: DELTASPIKE-120
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-120
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.1-incubating
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.2-incubating
>
>
> The BeanProvider methods 
>   #getContextualReference(String name, boolean optional) and
>   #getContextualReference(Type t, boolean optional, Annotation... qualifiers) 
> will in 90% of the cases get called with optional=false to throw an 
> IllegalStateException if no bean could be found.
> Thus we shall introduce 2 convenient methods without the boolean parameter 
> which will fail if none of the requested beans exist.
> We don't need to do this for methods like getContextualReferences (plural) as 
> those methods are not used that frequently.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to