[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:38:35 EDT 2012


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

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

Also, the spec currently contradicts itself when it says:

{quote}
A qualifier type is a Java annotation defined as @Target(\{METHOD, FIELD, PARAMETER, TYPE\}) and @Retention(RUNTIME).
{quote}

and then uses 
{code:JAVA}
@Qualifier
@Target(PARAMETER)
@Retention(RUNTIME)
public @interface Role {
String value();
}
{code}

in 10.2.2 of CDI 1.0
                
> 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