[webbeans-dev] Is @Named qualifier?
by Takeshi Kondo
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
15 years, 2 months