[
https://issues.apache.org/jira/browse/OWB-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gurkan Erdogdu closed OWB-239.
--
Resolution: Won't Fix
> JavaBeans property getter naming convention with Producer Methods gives
> Unsatis
Awesome, thanks for the clarification!
Sincerely,
Joe
On Tue, Jan 19, 2010 at 8:31 AM, Gurkan Erdogdu wrote:
> Yes, it works! I have tried it.
>
> 2010/1/19 Joseph Bergmark
>
> > Lets ignore the @Inject @Named for a minute, as I think it is distracting
> > from the main issue of the producer m
Yes, it works! I have tried it.
2010/1/19 Joseph Bergmark
> Lets ignore the @Inject @Named for a minute, as I think it is distracting
> from the main issue of the producer methods default name.
>
> If I have a bean with a producer field:
>
> @Produces @Named Products getProducts()
>
> You would
Lets ignore the @Inject @Named for a minute, as I think it is distracting
from the main issue of the producer methods default name.
If I have a bean with a producer field:
@Produces @Named Products getProducts()
You would agree its el-name should be "products" and I should be able to
reference i
As specified in specification, this is solely used for integration with
legacy code that uses @Named annotation as differentiating beans with
strings. For example,if you use JSR-330 impl and @Named(value), to
differentiate beans, you could resolve those beans with JSR-299 using
@Named(value). So us
Joe, you are right that producer method name is getting from method name if
there is no Named(value).
In the example, default name of the producer bean is "products." There is no
problem in this. The problem is how to resolve this producer method. In the
example, tried with qualifiers, public @In
While I agree that injecting using the @Name with the String value isn't
recommended, it works right now.
That said, section 3.3.8 seems to clearly indicate that the @Named qualifier
for a producer method should provide a default value that follows JavaBean
property getter names. IE a method name
[
https://issues.apache.org/jira/browse/OWB-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gurkan Erdogdu closed OWB-239.
--
Resolution: Invalid
This is true action. @Named is a qualifier. You have to give it a @Named(value)
in pr