[xwiki-devs] [VOTE] Use @Named (and @Qualifier annotations later on) for specifying component role

Caleb James DeLisle calebdelisle at lavabit.com
Wed Mar 30 13:04:14 UTC 2011

+1 @Named.
0 for switching to @Qualifier, IMO we should sniff the wind and find out if people are generally
choosing @Named or @Qualifier.
Superior technology doesn't help much if the rest of the world abandons it.


On 03/30/2011 08:28 AM, Vincent Massol wrote:
> Hi devs,
> I'd like to propose to deprecate the "value" and "hints" fields of @Component and instead use the @Named annotation (and @Qualifier annotations later on).
> The rationale is to align with JSR330's @Named annotation at injection points and also to start going in the direction of CDI (JSR299) since CDI uses @Named for beans too.
> Example before:
> @Component("hint")
> public class MyComponent...
> After:
> @Component
> @Named("hint")
> public class MyComponent
> Here's my +1
> Thanks
> -Vincent
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs

More information about the devs mailing list