[
https://issues.jboss.org/browse/SOLDER-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Allen reopened SOLDER-40:
-----------------------------
Assignee: Dan Allen
> Introduce @Qualified to have package name prepended to @Named value
> -------------------------------------------------------------------
>
> Key: SOLDER-40
> URL: https://issues.jboss.org/browse/SOLDER-40
> Project: Seam Solder
> Issue Type: Feature Request
> Reporter: Dan Allen
> Assignee: Dan Allen
> Priority: Minor
> Fix For: 3.0.0.Beta1
>
>
> @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
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues