OK. But, could you create a new issue with your problem and closing this? It
will be more manageable.

Thanks;

--Gurkan

2010/1/19 Mark Struberg <[email protected]>

> I currently have a funny issue in my company with @Named producer methods
> which is very similar (but via EL) thus I reopened it to not forget to check
> that the default name works.
>
> LieGrue,
> strub
>
> --- On Tue, 1/19/10, Gurkan Erdogdu <[email protected]> wrote:
>
> > From: Gurkan Erdogdu <[email protected]>
> > Subject: Re: [jira] Reopened: (OWB-239) JavaBeans property getter naming
>  convention with Producer Methods gives UnsatisfiedResolutionException
> > To: [email protected]
> > Date: Tuesday, January 19, 2010, 1:46 PM
> > As I stated, given example commented
> > on the JIRA is not valid. Please read
> > my other comments.
> >
> > 2010/1/19 Gurkan Erdogdu <[email protected]>
> >
> > > Hi Mark;
> > >
> > > why do you reopen this issue?
> > >
> > > --Gurkan
> > >
> > > 2010/1/19 Mark Struberg (JIRA) <[email protected]>
> > >
> > >
> > >>     [
> > >>
> https://issues.apache.org/jira/browse/OWB-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
> > >>
> > >> Mark Struberg reopened OWB-239:
> > >> -------------------------------
> > >>
> > >>
> > >> As of section 3.3.8:
> > >> > The default name for a producer method is the
> > method name, unless the
> > >> method follows the JavaBeans property getter
> > >> > naming convention, in which case the default
> > name is the JavaBeans
> > >> property name.
> > >>
> > >>
> > >> > JavaBeans property getter naming convention
> > with Producer Methods gives
> > >> UnsatisfiedResolutionException
> > >> >
> > >>
> >
> ------------------------------------------------------------------------------------------------------
> > >> >
> > >> >
> >      Key: OWB-239
> > >> >
> >      URL: https://issues.apache.org/jira/browse/OWB-239
> > >> >
> >    Project: OpenWebBeans
> > >> >          Issue Type:
> > Bug
> > >> >          Components:
> > Injection and Lookup
> > >> >    Affects Versions: M3
> > >> >
> >    Environment: Windows,  Eclipse
> > running Jetty
> > >> >
> > Reporter: Bill Wigger
> > >> >
> > Assignee: Gurkan Erdogdu
> > >> >
> >    Fix For: M3
> > >> >
> > >> >
> > >> > Problem:
> > >> > JavaBeans property getter naming convention
> > with Producer Methods gives
> > >> UnsatisfiedResolutionException
> > >> > Injection in class X:
> > >> >       @Produces
> > @Named public String getProducts() {
> > >> >
> >    return "Sucess from getProducts";
> > >> >       }
> > >> > Injection Point in  Y:
> > >> >       public @Inject
> > @Named("products") String N3;
> > >> >       public String
> > getTestNamed3() {
> > >> >
> >    String y = N3;
> > >> >
> >      return y;
> > >> >         }
> > >> > Actual Results when getTestNamed3 is called
> > from a JSP:
> > >> >
> > javax.enterprise.inject.UnsatisfiedResolutionException: Api
> > type
> > >> [java.lang.String] is not found with the
> > qualifiers
> > >> [[email protected](value=products)]
> > >> >       at
> > >>
> >
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:93)
> > >> >       at
> > >>
> >
> org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:232)
> > >> >       at
> > >>
> >
> org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:90)
> > >> >
> >    etc....
> > >> >
> > >> > Desired Results:
> > >> > "Sucess from getProducts"
> > >>
> > >> --
> > >> This message is automatically generated by JIRA.
> > >> -
> > >> You can reply to this email to add a comment to
> > the issue online.
> > >>
> > >>
> > >
> > >
> > > --
> > > Gurkan Erdogdu
> > > http://gurkanerdogdu.blogspot.com
> > >
> >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
> >
>
>
>
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Reply via email to