[seam-issues] [JBoss JIRA] Moved: (SOLDER-40) Introduce @Qualified to have package name prepended to @Named value

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Nov 29 05:19:41 EST 2010

     [ https://jira.jboss.org/browse/SOLDER-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir moved WELDX-179 to SOLDER-40:

              Project: Seam Solder  (was: Weld Extensions)
                  Key: SOLDER-40  (was: WELDX-179)
    Affects Version/s:     (was: 1.0.0.Beta1)
             Assignee:     (was: Dan Allen)
        Fix Version/s: 1.0.0.Beta2
                           (was: 1.0.0.Beta2)

> Introduce @Qualified to have package name prepended to @Named value
> -------------------------------------------------------------------
>                 Key: SOLDER-40
>                 URL: https://jira.jboss.org/browse/SOLDER-40
>             Project: Seam Solder
>          Issue Type: Feature Request
>            Reporter: Dan Allen
>            Priority: Minor
>             Fix For: 1.0.0.Beta2
> @Named gives the bean a name equal to the annotation value property or, if one is not specified, the decapitalized simple name of the type. This behavior is precisely what the majority of developers will appreciate. However, framework writers should avoid stomping on the root bean namespace, instead assigning qualified names to their built-in components. The motivation is the same as qualifying Java types.
> One way to accomplish this would be to include the package name in the name specified in the @Named annotation:
> @Named("org.jboss.seam.security.Identity")
> public class Identity ... { ... }
> However, this is not in the spirit of type-safety. As an alternative, Weld X can introduce an annotation which indicates that the bean name be qualified to the package in which the type resides.
> @Qualified @Named
> public class Identity ... { ... }
> This allows the bean name to be defaulted and keeps the package out of a string.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list