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(a)gmail.com> wrote:
From: Takeshi Kondo <takeshi.kondo(a)gmail.com>
Subject: [webbeans-dev] Is @Named qualifier?
To: webbeans-dev(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/webbeans-dev