You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Gurkan Erdogdu <gu...@yahoo.com> on 2009/01/17 08:12:34 UTC
Fw: [webbeans-dev] Constructor Parameter Injection
Hi;
I have asked the *Constructor Parameter Injection* to the *webbeans-list*. This version of the specification does not support it.
But I definitely see this feature in the OpenWebBeans? And Mark has already done something related with this.
I created a jira --> https://issues.apache.org/jira/browse/OWB-43
/Gurkan
----- Forwarded Message ----
From: Gavin King <ga...@hibernate.org>
To: Gurkan Erdogdu <gu...@yahoo.com>
Cc: webbeans-dev@lists.jboss.org
Sent: Saturday, January 17, 2009 2:40:58 AM
Subject: Re: [webbeans-dev] Constructor Parameter Injection
Yes, that's true, and it is a feature I would like, but frankly I
think we are out of time to do this in the spec.
On Sat, Jan 17, 2009 at 8:40 AM, Gurkan Erdogdu <gu...@yahoo.com> wrote:
> Hi;
>
> In today, as far as I understand from the XML chapter of the specification ,
> there is no support for the primitive/wrapper injection into the constructor
> parameter via XML decleration like this.
>
> <myapp : BeanTest>
> <lang:Integer>42</lang:Integer>
> </myapp:BeanTest>
>
> for bean class
>
> class BeanTest
> {
> private int param;
>
> public BeanTest(int param)
> {
> this.param = param;
> }
> }
>
> For example, when the bean is instantiated by the container, it injects the
> *param* parameter as 42. Currently there is only way to the this via
> @Initializer method.
>
> I think this is important, because lots of old codes may be benefited from
> the webbeans without touching their codes.
>
>
> /Gurkan
>
>
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>
>
--
Gavin King
gavin.king@gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
Re: Fw: [webbeans-dev] Constructor Parameter Injection
Posted by Mark Struberg <st...@yahoo.de>.
+1 especially since Gavin stated that he also likes to add this feature and there is only not enough time yet :)
LieGrue,
strub
--- Mohammad Nour El-Din <no...@gmail.com> schrieb am Sa, 17.1.2009:
> Von: Mohammad Nour El-Din <no...@gmail.com>
> Betreff: Re: Fw: [webbeans-dev] Constructor Parameter Injection
> An: openwebbeans-dev@incubator.apache.org
> Datum: Samstag, 17. Januar 2009, 15:42
> I think that we don't have to stick strictly to the
> specs regarding
> adding new features. The specs only defines the minimum of
> compliance.
> We need to add any new and attracting features as long as
> they do not
> conflict with the standard.
>
> On Sat, Jan 17, 2009 at 9:12 AM, Gurkan Erdogdu
> <gu...@yahoo.com> wrote:
> > Hi;
> >
> > I have asked the *Constructor Parameter Injection* to
> the *webbeans-list*. This version of the specification does
> not support it.
> >
> > But I definitely see this feature in the OpenWebBeans?
> And Mark has already done something related with this.
> >
> > I created a jira -->
> https://issues.apache.org/jira/browse/OWB-43
> >
> > /Gurkan
> >
> >
> >
> > ----- Forwarded Message ----
> > From: Gavin King <ga...@hibernate.org>
> > To: Gurkan Erdogdu <gu...@yahoo.com>
> > Cc: webbeans-dev@lists.jboss.org
> > Sent: Saturday, January 17, 2009 2:40:58 AM
> > Subject: Re: [webbeans-dev] Constructor Parameter
> Injection
> >
> > Yes, that's true, and it is a feature I would
> like, but frankly I
> > think we are out of time to do this in the spec.
> >
> > On Sat, Jan 17, 2009 at 8:40 AM, Gurkan Erdogdu
> <gu...@yahoo.com> wrote:
> >> Hi;
> >>
> >> In today, as far as I understand from the XML
> chapter of the specification ,
> >> there is no support for the primitive/wrapper
> injection into the constructor
> >> parameter via XML decleration like this.
> >>
> >> <myapp : BeanTest>
> >> <lang:Integer>42</lang:Integer>
> >> </myapp:BeanTest>
> >>
> >> for bean class
> >>
> >> class BeanTest
> >> {
> >> private int param;
> >>
> >> public BeanTest(int param)
> >> {
> >> this.param = param;
> >> }
> >> }
> >>
> >> For example, when the bean is instantiated by the
> container, it injects the
> >> *param* parameter as 42. Currently there is only
> way to the this via
> >> @Initializer method.
> >>
> >> I think this is important, because lots of old
> codes may be benefited from
> >> the webbeans without touching their codes.
> >>
> >>
> >> /Gurkan
> >>
> >>
> >>
> >> _______________________________________________
> >> webbeans-dev mailing list
> >> webbeans-dev@lists.jboss.org
> >>
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
> >>
> >>
> >
> >
> >
> > --
> > Gavin King
> > gavin.king@gmail.com
> > http://in.relation.to/Bloggers/Gavin
> > http://hibernate.org
> > http://seamframework.org
> >
> >
> >
> >
>
>
>
> --
> ----
> Thanks
> - Mohammad Nour
> - LinkedIn: http://www.linkedin.com/in/mnour
> ----
> "Life is like riding a bicycle. To keep your balance
> you must keep moving"
> - Albert Einstein
Re: Fw: [webbeans-dev] Constructor Parameter Injection
Posted by Mohammad Nour El-Din <no...@gmail.com>.
I think that we don't have to stick strictly to the specs regarding
adding new features. The specs only defines the minimum of compliance.
We need to add any new and attracting features as long as they do not
conflict with the standard.
On Sat, Jan 17, 2009 at 9:12 AM, Gurkan Erdogdu <gu...@yahoo.com> wrote:
> Hi;
>
> I have asked the *Constructor Parameter Injection* to the *webbeans-list*. This version of the specification does not support it.
>
> But I definitely see this feature in the OpenWebBeans? And Mark has already done something related with this.
>
> I created a jira --> https://issues.apache.org/jira/browse/OWB-43
>
> /Gurkan
>
>
>
> ----- Forwarded Message ----
> From: Gavin King <ga...@hibernate.org>
> To: Gurkan Erdogdu <gu...@yahoo.com>
> Cc: webbeans-dev@lists.jboss.org
> Sent: Saturday, January 17, 2009 2:40:58 AM
> Subject: Re: [webbeans-dev] Constructor Parameter Injection
>
> Yes, that's true, and it is a feature I would like, but frankly I
> think we are out of time to do this in the spec.
>
> On Sat, Jan 17, 2009 at 8:40 AM, Gurkan Erdogdu <gu...@yahoo.com> wrote:
>> Hi;
>>
>> In today, as far as I understand from the XML chapter of the specification ,
>> there is no support for the primitive/wrapper injection into the constructor
>> parameter via XML decleration like this.
>>
>> <myapp : BeanTest>
>> <lang:Integer>42</lang:Integer>
>> </myapp:BeanTest>
>>
>> for bean class
>>
>> class BeanTest
>> {
>> private int param;
>>
>> public BeanTest(int param)
>> {
>> this.param = param;
>> }
>> }
>>
>> For example, when the bean is instantiated by the container, it injects the
>> *param* parameter as 42. Currently there is only way to the this via
>> @Initializer method.
>>
>> I think this is important, because lots of old codes may be benefited from
>> the webbeans without touching their codes.
>>
>>
>> /Gurkan
>>
>>
>>
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>
>>
>
>
>
> --
> Gavin King
> gavin.king@gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>
>
>
>
--
----
Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein