[webbeans-dev] Is @Named qualifier?
Mark Struberg
struberg at yahoo.de
Fri Sep 4 08:04:39 EDT 2009
Oh, we had exact the same discussion over at OpenWebBeans today.
What about re-introducing @BindingType again but making it an @Qualifier?
In fact, JSR-330 @Qualifier says nothing about type safety and resolution at all, so this is basically undefined afaik. So having a well defined @BindingType again would imho be a good thing.
LieGrue,
strub
--- On Wed, 9/2/09, Takeshi Kondo <takeshi.kondo at gmail.com> wrote:
> From: Takeshi Kondo <takeshi.kondo at gmail.com>
> Subject: [webbeans-dev] Is @Named qualifier?
> To: webbeans-dev at lists.jboss.org
> Date: Wednesday, September 2, 2009, 8:45 PM
> Hi
>
> I'm a bit confused about @Named annotation.
> @Named is qualifier in jsr-330. However in webbeans @Named
> was EL name.
>
> I want to use @Named annotation as EL name and don't to use
> it as
> qualifier.
> for instance,
> When I use HttpServletRequest in JSP, I want to reference
> "#{request}",
> and when I use it in Java code, I want to inject it by
> @Inject.
> However if @Named is qualifier we have to use
> @Named("request") and
> @Inject to inject it.
> I don't want to use @Named("request") annotation to inject
> it in this
> use-case.
>
> Is there way which we name only EL name to class?
>
> Takeshi Kondo
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
More information about the weld-dev
mailing list