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

Vincent Massol vincent at massol.net
Wed Mar 30 12:48:59 UTC 2011

On Mar 30, 2011, at 2:48 PM, Sergiu Dumitriu wrote:

> On 03/30/2011 02:28 PM, 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
> +1. Will the old mechanism continue to work for a while, for backwards 
> compatibility?

Sure. It's only about marking it deprecated.


More information about the devs mailing list