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

Denis Gervalle dgl at softec.lu
Thu Mar 31 13:31:25 UTC 2011


+0

Denis

On Wed, Mar 30, 2011 at 15:17, Marius Dumitru Florea <
mariusdumitru.florea at xwiki.com> wrote:

> +1
>
> Thanks,
> Marius
>
> On 03/30/2011 03: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
> >
> > Thanks
> > -Vincent
> >
> > _______________________________________________
> > devs mailing list
> > devs at xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/devs
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO



More information about the devs mailing list