[cdi-dev] [JBoss JIRA] (CDI-15) Relax @Target annotation for CDI Scopes and Qualifiers

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Sep 18 07:26:35 EDT 2012


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

Jozef Hartinger commented on CDI-15:
------------------------------------

Also, there may be cases where restricting a custom qualifier more than the spec requires @Target({METHOD, FIELD, PARAMETER, TYPE}) would be handy (e.g. FIELD and PARAMETER only for a qualifier marking special bean which can be injected but no other equally qualified bean can be produced).
                
> Relax @Target annotation for CDI Scopes and Qualifiers
> ------------------------------------------------------
>
>                 Key: CDI-15
>                 URL: https://issues.jboss.org/browse/CDI-15
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Concepts
>    Affects Versions: 1.0
>            Reporter: Stuart Douglas
>             Fix For: 1.1.PRD
>
>
> In some cases it may make sense to apply a scope or qualifier in a place that was not envisaged by the spec but that would be useful for a portable extension. 
> For example, the @Constructs extension described at
> http://www.seamframework.org/Weld/PortableExtensionsPackage#H-BeanDeclarationAtConstructorLevel
> is not possible because scopes and qualifiers can not be placed on constructors

--
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