Enabling programmatic/synthetic decorators added by extension
by arjan tijms
Hi,
I'm trying to add decorators and/or interceptors to a Bean<T> that's added
via an extension. There doesn't seem to be any way to add interceptors, but
decorators seem almost possible.
I've added a decorator in the following way:
AnnotatedType<AutoApplySessionDecorator> annotatedType =
beanManager.createAnnotatedType(AutoApplySessionDecorator.class);
BeanAttributes<AutoApplySessionDecorator> beanAttributes =
beanManager.createBeanAttributes(annotatedType);
Bean<AutoApplySessionDecorator> bean =
beanManager.createBean(beanAttributes, AutoApplySessionDecorator.class,
beanManager.getInjectionTargetFactory(annotatedType));
afterBeanDiscovery.addBean(bean);
Where the "AutoApplySessionDecorator" is an existing (non-scanned)
decorator just used as an example.
While this seems to work, the problem is with the enablement. @Priority is
not processed in this way, since it's only read from an AnnotatedType
that's been added to the deployment (see e.g. in
Weld org.jboss.weld.bootstrap.BeanDeployer.processPriority(AnnotatedType<?>)).
beans.xml is not really an option here due to the static nature of that and
the fact that the decorator needs to be enabled dynamically here, plus that
the implementation class of the decorator is a detail I would not like to
expose to the application.
Is there any other way to either enable a (synthetic) decorator
programmatically, or to add Interceptors to a programmatically added
Bean<T>?
Kind regards,
Arjan Tijms
8 years, 3 months
Re: [cdi-dev] the next CDI f2f meeting
by Werner Keil
Hi,
With at least JavaOne taking 10+ days (I also should be at the EC F2F a few
days before) September is pretty packed for me and I'm afraid I could not
take another week day(s) off then.
If part of it also had a video link similar to last week's call, I'd be
happy to join like that if possible.
Werner
On Wed, Jun 29, 2016 at 1:26 PM, <cdi-dev-request(a)lists.jboss.org> wrote:
> Send cdi-dev mailing list submissions to
> cdi-dev(a)lists.jboss.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> or, via email, send a message with subject or body 'help' to
> cdi-dev-request(a)lists.jboss.org
>
> You can reach the person managing the list at
> cdi-dev-owner(a)lists.jboss.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cdi-dev digest..."
>
>
> Today's Topics:
>
> 1. the next CDI f2f meeting (Emily Jiang)
> 2. Re: the next CDI f2f meeting (Antoine Sabot-Durand)
> 3. Re: the next CDI f2f meeting (Emily Jiang)
> 4. Last review on PR 290 (SE bootstrap) (Antoine Sabot-Durand)
> 5. Re: Last review on PR 290 (SE bootstrap) (John D. Ament)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 29 Jun 2016 09:46:51 +0100
> From: Emily Jiang <EMIJIANG(a)uk.ibm.com>
> Subject: [cdi-dev] the next CDI f2f meeting
> To: "Antoine Sabot-Durand" <antoine(a)sabot-durand.net>
> Cc: cdi-dev(a)lists.jboss.org
> Message-ID:
> <
> OF45017F7A.5D7A618E-ON80257FE1.00300BBE-80257FE1.0030409C(a)notes.na.collabserv.com
> >
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Antoine,
>
> Have you decided on the dates of the CDI F2F in September? I need to plan
> my other activities around it. The earlier you can finalise the date the
> better.
>
> Many thanks,
> Emily
> ===========================
> Emily Jiang
> WebSphere Application Server, CDI Development Lead
>
> MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
> Phone: +44 (0)1962 816278 Internal: 246278
>
> Email: emijiang(a)uk.ibm.com
> Lotus Notes: Emily Jiang/UK/IBM@IBMGB
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160629/d374816b/at...
>
> ------------------------------
>
> Message: 2
> Date: Wed, 29 Jun 2016 08:50:12 +0000
> From: Antoine Sabot-Durand <antoine(a)sabot-durand.net>
> Subject: Re: [cdi-dev] the next CDI f2f meeting
> To: Emily Jiang <EMIJIANG(a)uk.ibm.com>
> Cc: cdi-dev(a)lists.jboss.org
> Message-ID:
> <
> CABu-YBQ18C8rC38qDYHoSE6aYH8w+h906QBq8129z8imoqu0XQ(a)mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> You're right Emily. I try to close the Doodle this week.
>
> Antoine
> Le mer. 29 juin 2016 ? 10:46, Emily Jiang <EMIJIANG(a)uk.ibm.com> a ?crit :
>
> > Hi Antoine,
> >
> > Have you decided on the dates of the CDI F2F in September? I need to plan
> > my other activities around it. The earlier you can finalise the date the
> > better.
> >
> > Many thanks,
> > Emily
> > ===========================
> > Emily Jiang
> > WebSphere Application Server, CDI Development Lead
> >
> > MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
> > Phone: +44 (0)1962 816278 Internal: 246278
> >
> > Email: emijiang(a)uk.ibm.com
> > Lotus Notes: Emily Jiang/UK/IBM@IBMGB
> >
> > Unless stated otherwise above:
> > IBM United Kingdom Limited - Registered in England and Wales with number
> > 741598.
> > Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
> 3AU
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160629/a2e80654/at...
>
> ------------------------------
>
> Message: 3
> Date: Wed, 29 Jun 2016 09:54:15 +0100
> From: Emily Jiang <EMIJIANG(a)uk.ibm.com>
> Subject: Re: [cdi-dev] the next CDI f2f meeting
> To: Antoine Sabot-Durand <antoine(a)sabot-durand.net>
> Cc: cdi-dev(a)lists.jboss.org
> Message-ID:
> <
> OFAFA70F86.9D0FD7A9-ON80257FE1.0030DC78-80257FE1.0030EE07(a)notes.na.collabserv.com
> >
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> thank you Antoine!
>
> Many thanks,
> Emily
> ===========================
> Emily Jiang
> WebSphere Application Server, CDI Development Lead
>
> MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
> Phone: +44 (0)1962 816278 Internal: 246278
>
> Email: emijiang(a)uk.ibm.com
> Lotus Notes: Emily Jiang/UK/IBM@IBMGB
>
>
>
>
> From: Antoine Sabot-Durand <antoine(a)sabot-durand.net>
> To: Emily Jiang/UK/IBM@IBMGB,
> Cc: cdi-dev(a)lists.jboss.org
> Date: 29/06/2016 09:50
> Subject: Re: the next CDI f2f meeting
>
>
>
> You're right Emily. I try to close the Doodle this week.
>
> Antoine
> Le mer. 29 juin 2016 ? 10:46, Emily Jiang <EMIJIANG(a)uk.ibm.com> a ?crit :
> Hi Antoine,
>
> Have you decided on the dates of the CDI F2F in September? I need to plan
> my other activities around it. The earlier you can finalise the date the
> better.
>
> Many thanks,
> Emily
> ===========================
> Emily Jiang
> WebSphere Application Server, CDI Development Lead
>
> MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
> Phone: +44 (0)1962 816278 Internal: 246278
>
> Email: emijiang(a)uk.ibm.com
> Lotus Notes: Emily Jiang/UK/IBM@IBMGB
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160629/88bdd798/at...
>
> ------------------------------
>
> Message: 4
> Date: Wed, 29 Jun 2016 11:20:52 +0000
> From: Antoine Sabot-Durand <antoine(a)sabot-durand.net>
> Subject: [cdi-dev] Last review on PR 290 (SE bootstrap)
> To: cdi-dev <cdi-dev(a)lists.jboss.org>
> Message-ID:
> <CABu-YBQSU4caG7AGVf-bc1J4+bAi1gzSghJ5hqX=xQ0EM=
> AY9g(a)mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi all,
>
> I just push changed decided in yesterday meeting to PR 290[1]. Please
> review them and give a +1 on it if you're ok for the merge.
> Generated version of the spec is available here [2].
>
> Antoine
>
> [1]: https://github.com/cdi-spec/cdi/pull/290
> [2]:
> https://dl.dropboxusercontent.com/u/2898173/cdi-spec.html#bootstrap-se
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160629/af99dd90/at...
>
> ------------------------------
>
> Message: 5
> Date: Wed, 29 Jun 2016 11:26:28 +0000
> From: "John D. Ament" <john.d.ament(a)gmail.com>
> Subject: Re: [cdi-dev] Last review on PR 290 (SE bootstrap)
> To: Antoine Sabot-Durand <antoine(a)sabot-durand.net>, cdi-dev
> <cdi-dev(a)lists.jboss.org>
> Message-ID:
> <CAOqetn8=e207bnujL-CCs75nFG=swo1=
> PGZpkv0YWYiQphmgAg(a)mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Antoine,
>
> Looks like we may have missed one of the earlier comments, about reusing
> the instance vs creating a new one each time.
>
> John
>
> On Wed, Jun 29, 2016 at 7:23 AM Antoine Sabot-Durand <
> antoine(a)sabot-durand.net> wrote:
>
> > Hi all,
> >
> > I just push changed decided in yesterday meeting to PR 290[1]. Please
> > review them and give a +1 on it if you're ok for the merge.
> > Generated version of the spec is available here [2].
> >
> > Antoine
> >
> > [1]: https://github.com/cdi-spec/cdi/pull/290
> > [2]:
> > https://dl.dropboxusercontent.com/u/2898173/cdi-spec.html#bootstrap-se
> >
> > _______________________________________________
> > cdi-dev mailing list
> > cdi-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >
> > Note that for all code provided on this list, the provider licenses the
> > code under the Apache License, Version 2 (
> > http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> > provided on this list, the provider waives all patent and other
> > intellectual property rights inherent in such information.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160629/78cfc3a5/at...
>
> ------------------------------
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the
> code under the Apache License, Version 2 (
> http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> provided on this list, the provider waives all patent and other
> intellectual property rights inherent in such information.
>
> End of cdi-dev Digest, Vol 67, Issue 31
> ***************************************
>
8 years, 4 months
the next CDI f2f meeting
by Emily Jiang
Hi Antoine,
Have you decided on the dates of the CDI F2F in September? I need to plan
my other activities around it. The earlier you can finalise the date the
better.
Many thanks,
Emily
===========================
Emily Jiang
WebSphere Application Server, CDI Development Lead
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN
Phone: +44 (0)1962 816278 Internal: 246278
Email: emijiang(a)uk.ibm.com
Lotus Notes: Emily Jiang/UK/IBM@IBMGB
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
8 years, 4 months
Re: [cdi-dev] Tomorrow's meeting recording
by Werner Keil
Well just with my "Java EE Guardians" hat on, I'm saying, Oracle is not the
only participant or EG sometimes lacking transparency. I would not even be
able to join the hangout here at the client's office simply because there's
no working audio HW in our laptops, not so much because of what's on the
walls behind me (generally they are also extremely secretive, but there is
nothing behind my desk that would unveil secrets;-)
Werner
On Fri, Jun 24, 2016 at 3:14 PM, <cdi-dev-request(a)lists.jboss.org> wrote:
> Send cdi-dev mailing list submissions to
> cdi-dev(a)lists.jboss.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> or, via email, send a message with subject or body 'help' to
> cdi-dev-request(a)lists.jboss.org
>
> You can reach the person managing the list at
> cdi-dev-owner(a)lists.jboss.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cdi-dev digest..."
>
>
> Today's Topics:
>
> 1. Re: Tomorrow's meeting recording (John D. Ament)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 24 Jun 2016 13:14:09 +0000
> From: "John D. Ament" <john.d.ament(a)gmail.com>
> Subject: Re: [cdi-dev] Tomorrow's meeting recording
> To: Werner Keil <werner.keil(a)gmail.com>, cdi-dev
> <cdi-dev(a)lists.jboss.org>
> Message-ID:
> <CAOqetn_RVq=
> 6cAE5hGbOFY-MPq+pFWQScSOBCoPCt3guop+hnQ(a)mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Fri, Jun 24, 2016 at 9:02 AM Werner Keil <werner.keil(a)gmail.com> wrote:
>
> > >...too high
> > >risk of something written on a wall ending up on video.
> >
> > So much for transparency;-|
> >
>
> Werner, are you concerned that my employer is not being transparent about
> internal R&D items to outside parties?
>
>
> >
> > Werner
> >
> >
> > On Fri, Jun 24, 2016 at 2:59 PM, <cdi-dev-request(a)lists.jboss.org>
> wrote:
> >
> >> Send cdi-dev mailing list submissions to
> >> cdi-dev(a)lists.jboss.org
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >> https://lists.jboss.org/mailman/listinfo/cdi-dev
> >> or, via email, send a message with subject or body 'help' to
> >> cdi-dev-request(a)lists.jboss.org
> >>
> >> You can reach the person managing the list at
> >> cdi-dev-owner(a)lists.jboss.org
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of cdi-dev digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >> 1. Re: Tomorrow's meeting recording (John D. Ament)
> >> 2. Re: Tomorrow's meeting recording (Martin Kouba)
> >> 3. Re: Tomorrow's meeting recording (Antoine Sabot-Durand)
> >> 4. Re: Please review PR 290 (bootstrap se) (Michael Remijan)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Thu, 23 Jun 2016 23:24:43 +0000
> >> From: "John D. Ament" <john.d.ament(a)gmail.com>
> >> Subject: Re: [cdi-dev] Tomorrow's meeting recording
> >> To: Antoine Sabot-Durand <antoine(a)sabot-durand.net>, cdi-dev
> >> <cdi-dev(a)lists.jboss.org>
> >> Message-ID:
> >> <
> >> CAOqetn-DCJ17cvKxBuc_BM14gBxub3gMvRZKEhKovM3z06snMw(a)mail.gmail.com>
> >> Content-Type: text/plain; charset="utf-8"
> >
> >
> >>
> >> Unfortunately, I won't be able to do video if its being recorded, too
> high
> >> risk of something written on a wall ending up on video.
> >>
> >> John
> >>
> >> On Thu, Jun 23, 2016 at 4:38 PM Antoine Sabot-Durand <
> >>
> > antoine(a)sabot-durand.net> wrote:
> >>
> >> > Hi all,
> >> >
> >> > As all of us won't be able to attend the meeting, it will be recorder
> >> for
> >> > further reference. Hence the meeting will take place on redhat
> Bluejeans
> >> > meeting service.
> >> > II've just added the url to the invitation.
> >> > If you want to attend and are not on the list please tell me and I'll
> >> add
> >> > you.
> >> >
> >> > Antoine
> >> > _______________________________________________
> >> > cdi-dev mailing list
> >> > cdi-dev(a)lists.jboss.org
> >>
> > > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >> >
> >> > Note that for all code provided on this list, the provider licenses
> the
> >> > code under the Apache License, Version 2 (
> >> > http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> >> > provided on this list, the provider waives all patent and other
> >> > intellectual property rights inherent in such information.
> >>
> > -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >>
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160623/57308212/at...
> >>
> >> ------------------------------
> >>
> >> Message: 2
> >> Date: Fri, 24 Jun 2016 09:06:16 +0200
> >> From: Martin Kouba <mkouba(a)redhat.com>
> >> Subject: Re: [cdi-dev] Tomorrow's meeting recording
> >> To: "John D. Ament" <john.d.ament(a)gmail.com>, Antoine Sabot-Durand
> >> <antoine(a)sabot-durand.net>, cdi-dev <
> cdi-dev(a)lists.jboss.org>
> >> Message-ID: <576CDBE8.1040506(a)redhat.com>
> >> Content-Type: text/plain; charset=windows-1252; format=flowed
> >
> >
> >>
> >> I should admit that it was my idea because I will not be able to attend
> >> the meeting and would really like to see/hear the discussion and
> >> arguments.
> >>
> >> Also I belive the recording should only be available to CDI EG memebers.
> >>
> >> Martin
> >>
> >> Dne 24.6.2016 v 01:24 John D. Ament napsal(a):
> >> > Unfortunately, I won't be able to do video if its being recorded, too
> >> > high risk of something written on a wall ending up on video.
> >> >
> >> > John
> >> >
> >> > On Thu, Jun 23, 2016 at 4:38 PM Antoine Sabot-Durand
> >> > <antoine(a)sabot-durand.net <mailto:antoine@sabot-durand.net>> wrote:
> >> >
> >> > Hi all,
> >> >
> >> > As all of us won't be able to attend the meeting, it will be
> >> > recorder for further reference. Hence the meeting will take place
> on
> >> > redhat Bluejeans meeting service.
> >> > II've just added the url to the invitation.
> >> > If you want to attend and are not on the list please tell me and
> >> > I'll add you.
> >> >
> >> > Antoine
> >> > _______________________________________________
> >> > cdi-dev mailing list
> >> > cdi-dev(a)lists.jboss.org <mailto:cdi-dev@lists.jboss.org>
> >> > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >> >
> >> > Note that for all code provided on this list, the provider
> licenses
> >> > the code under the Apache License, Version 2
> >> > (http://www.apache.org/licenses/LICENSE-2.0.html). For all other
> >> > ideas provided on this list, the provider waives all patent and
> >> > other intellectual property rights inherent in such information.
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > cdi-dev mailing list
> >> > cdi-dev(a)lists.jboss.org
> >> > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >> >
> >> > Note that for all code provided on this list, the provider licenses
> the
> >> code under the Apache License, Version 2 (
> >> http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> >> provided on this list, the provider waives all patent and other
> >> intellectual property rights inherent in such information.
> >> >
> >>
> >> --
> >> Martin Kouba
> >> Software Engineer
> >> Red Hat, Czech Republic
> >>
> >>
> >> ------------------------------
> >>
> >> Message: 3
> >> Date: Fri, 24 Jun 2016 08:33:06 +0000
> >> From: Antoine Sabot-Durand <antoine(a)sabot-durand.net>
> >> Subject: Re: [cdi-dev] Tomorrow's meeting recording
> >> To: Martin Kouba <mkouba(a)redhat.com>, "John D. Ament"
> >> <john.d.ament(a)gmail.com>, cdi-dev <
> cdi-dev(a)lists.jboss.org>
> >> Message-ID:
> >> <
> >> CABu-YBTCfCkH6Xf7E0GgghK1agXDmq2sRK05LSeUV4pfpKkVVw(a)mail.gmail.com>
> >> Content-Type: text/plain; charset="utf-8"
> >
> >
> >>
> >> It will have restricted access and will be destroyed with the merge of
> >> CDI-30 ;)
> >>
> >> Le ven. 24 juin 2016 ? 09:06, Martin Kouba <mkouba(a)redhat.com> a ?crit
> :
> >
> >
> >>
> >> > I should admit that it was my idea because I will not be able to
> attend
> >> > the meeting and would really like to see/hear the discussion and
> >> arguments.
> >> >
> >> > Also I belive the recording should only be available to CDI EG
> memebers.
> >> >
> >> > Martin
> >> >
> >> > Dne 24.6.2016 v 01:24 John D. Ament napsal(a):
> >> > > Unfortunately, I won't be able to do video if its being recorded,
> too
> >> > > high risk of something written on a wall ending up on video.
> >> > >
> >> > > John
> >> > >
> >> > > On Thu, Jun 23, 2016 at 4:38 PM Antoine Sabot-Durand
> >> > > <antoine(a)sabot-durand.net <mailto:antoine@sabot-durand.net>> wrote:
> >> > >
> >> > > Hi all,
> >> > >
> >> > > As all of us won't be able to attend the meeting, it will be
> >> > > recorder for further reference. Hence the meeting will take
> place
> >> on
> >> > > redhat Bluejeans meeting service.
> >> > > II've just added the url to the invitation.
> >> > > If you want to attend and are not on the list please tell me and
> >> > > I'll add you.
> >> > >
> >> > > Antoine
> >> > > _______________________________________________
> >> > > cdi-dev mailing list
> >> > > cdi-dev(a)lists.jboss.org <mailto:cdi-dev@lists.jboss.org>
> >> > > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >> > >
> >> > > Note that for all code provided on this list, the provider
> >> licenses
> >> > > the code under the Apache License, Version 2
> >> > > (http://www.apache.org/licenses/LICENSE-2.0.html). For all
> other
> >> > > ideas provided on this list, the provider waives all patent and
> >> > > other intellectual property rights inherent in such information.
> >> > >
> >> > >
> >> > >
> >> > > _______________________________________________
> >> > > cdi-dev mailing list
> >> > > cdi-dev(a)lists.jboss.org
> >> > > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >> > >
> >> > > Note that for all code provided on this list, the provider licenses
> >> the
> >> > code under the Apache License, Version 2 (
> >> > http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> >> > provided on this list, the provider waives all patent and other
> >> > intellectual property rights inherent in such information.
> >> > >
> >> >
> >> > --
> >> > Martin Kouba
> >> > Software Engineer
> >> > Red Hat, Czech Republic
> >> >
> >>
> > -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >>
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160624/660a43b7/at...
> >>
> >> ------------------------------
> >>
> >> Message: 4
> >> Date: Fri, 24 Jun 2016 12:58:07 +0000 (UTC)
> >> From: Michael Remijan <mjremijan(a)yahoo.com>
> >> Subject: Re: [cdi-dev] Please review PR 290 (bootstrap se)
> >> To: Antoine Sabot-Durand <antoine(a)sabot-durand.net>, "John D. Ament"
> >> <john.d.ament(a)gmail.com>, cdi-dev <cdi-dev(a)lists.jboss.org>
> >> Message-ID:
> >> <2064584222.725169.1466773087613.JavaMail.yahoo(a)mail.yahoo.com>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >> Is a build available yet to test the new Bootstrap? I'd like to upgrade
> >> from 3.0.0.Alpha15
> >>
> >>
> >>
> >> On Thursday, June 23, 2016 6:47 AM, Antoine Sabot-Durand <
> >> antoine(a)sabot-durand.net> wrote:
> >>
> >>
> >> Error corrected. You can review the PR
> >> Thx John
> >> Le?jeu. 23 juin 2016 ??13:06, Antoine Sabot-Durand <
> >> antoine(a)sabot-durand.net> a ?crit?:
> >>
> >> OMG you're right. Javadoc has suffered from renaming refactoring :-(.
> Let
> >> me correct this
> >> Le?jeu. 23 juin 2016 ??12:09, John D. Ament <john.d.ament(a)gmail.com> a
> >> ?crit?:
> >>
> >> Antoine,
> >> Did you go a little too deep in renaming container -> bootstrap? Looks
> >> like many references to an EE container were changed.? Intentional?
> >> John
> >
> >
> >> On Thu, Jun 23, 2016 at 6:06 AM Antoine Sabot-Durand <
> >> antoine(a)sabot-durand.net> wrote:
> >>
> >> Hi all,
> >>
> > After integration of feedback, the new bootstrap API is in its final
> >> form.Please review it carefully to find the possible last errors [1].
> >> Generated spec doc can also be read here [2]
> >> Thanks for your help to integrate this very expected feature.
> >>
> >> Antoine
> >>
> >>
> >> [1] https://github.com/cdi-spec/cdi/pull/290
> >> [2]
> >> https://dl.dropboxusercontent.com/u/2898173/cdi-spec.html#bootstrap-se
> >
> >
> >>
> >>
> >> _______________________________________________
> >> cdi-dev mailing list
> >> cdi-dev(a)lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/cdi-dev
> >>
> >> Note that for all code provided on this list, the provider licenses the
> >> code under the Apache License, Version 2 (
> >> http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> >> provided on this list, the provider waives all patent and other
> >> intellectual property rights inherent in such information.
> >>
> >>
> >>
> >> _______________________________________________
> >> cdi-dev mailing list
> >> cdi-dev(a)lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/cdi-dev
> >>
> >> Note that for all code provided on this list, the provider licenses the
> >> code under the Apache License, Version 2 (
> >> http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> >> provided on this list, the provider waives all patent and other
> >> intellectual property rights inherent in such information.
> >>
> >>
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >>
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160624/d48fb094/at...
> >>
> >> ------------------------------
> >
> >
> >>
> >> _______________________________________________
> >> cdi-dev mailing list
> >> cdi-dev(a)lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/cdi-dev
> >>
> >> Note that for all code provided on this list, the provider licenses the
> >> code under the Apache License, Version 2 (
> >> http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> >> provided on this list, the provider waives all patent and other
> >> intellectual property rights inherent in such information.
> >>
> >> End of cdi-dev Digest, Vol 67, Issue 18
> >> ***************************************
> >>
> >
> > _______________________________________________
> > cdi-dev mailing list
> > cdi-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/cdi-dev
> >
> > Note that for all code provided on this list, the provider licenses the
> > code under the Apache License, Version 2 (
> > http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> > provided on this list, the provider waives all patent and other
> > intellectual property rights inherent in such information.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/cdi-dev/attachments/20160624/d685f4c0/at...
>
> ------------------------------
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the
> code under the Apache License, Version 2 (
> http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> provided on this list, the provider waives all patent and other
> intellectual property rights inherent in such information.
>
> End of cdi-dev Digest, Vol 67, Issue 20
> ***************************************
>
8 years, 4 months
New PR for CDI-30
by John D. Ament
All,
I've raised a new PR for the changes around CDI-30, based on Friday and
today's discussions. I've gone with the approach that BeanManager provides
a lookup for unmanaged contexts, and those unmanaged contexts can be
started/stopped in a manual way.
https://github.com/cdi-spec/cdi/pull/296
I haven't updated the spec yet, and the javadocs are pretty barebones. I
would greatly appreciate input on what to add.
John
8 years, 4 months
CDI-30 - Creating a managed context
by John D. Ament
All,
One of the discussion points from today was around where activation
belongs. I pushed up a branch with a rough example of what this might look
like
https://github.com/johnament/cdi/commit/f4cb91dca0eeb7edef5d4238f55ca413a...
One of my concerns with doing this is that to get a context object from the
bean manager, it needs to be active. This is in the javadocs: Obtains an
active {@linkplain javax.enterprise.context.spi.Context context object} for
the given. If we change this, it risks breaking compatibility.
Let me know your thoughts.
John
8 years, 4 months
[JBoss JIRA] (CDI-30) An API for managing built in contexts designed for other frameworks
by John Ament (JIRA)
[ https://issues.jboss.org/browse/CDI-30?page=com.atlassian.jira.plugin.sys... ]
John Ament updated CDI-30:
--------------------------
Description:
In order to allow CDI to play well in the general ecosystem, it needs to have SPIs. These SPIs need to allow other libraries to do things like register beans (CDI extensions), look up a bean manager, and get managed versions of its classes.
CDI has no way currently to support a framework starting and stopping built in contexts. These built in contexts are not really clear in how they are started, other than the container is responsible for starting them. This means its near impossible for an external library which is not Java EE aware to start these built in contexts. Being able to reuse these contexts allow developers to build their beans once and reuse them in many use cases.
These use cases may include:
1. Quartz Scheduler/CDI Integration. A Prototype of this is available in DeltaSpike, where jobs can be managed beans, by overriding the InstanceJobFactory, and can have contexts started via an annotation. To bring it a step further, Quartz, in order to mirror Java EE capabilities, may want to say that during the execution of a job, an instance of a request context is active. To do this, the developer should not need to do anything, but instead Quartz may automatically register a job listener that starts and stops the context (see: http://www.quartz-scheduler.org/documentation/quartz-2.2.x/cookbook/JobLi...)
2. Camel-CDI. Camel may want to say that during the execution of a route, a request context is active.
3. Netty/CDI (or any arbitrary network based server). During the reception of a message over TCP, a request is active. Likewise, for the entire TCP connection a session context is active.
4. Sparkjava/CDI. Assuming that sparkjava isn't running in a servlet container, during the execution of an arbitrary reactive method call, a request context is available for use.
was:Add management API for built in contexts allowing them to be reused as needed.
> An API for managing built in contexts designed for other frameworks
> -------------------------------------------------------------------
>
> Key: CDI-30
> URL: https://issues.jboss.org/browse/CDI-30
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Contexts
> Affects Versions: 1.0
> Reporter: Nicklas Karlsson
> Assignee: John Ament
> Fix For: 2.0 (discussion)
>
>
> In order to allow CDI to play well in the general ecosystem, it needs to have SPIs. These SPIs need to allow other libraries to do things like register beans (CDI extensions), look up a bean manager, and get managed versions of its classes.
> CDI has no way currently to support a framework starting and stopping built in contexts. These built in contexts are not really clear in how they are started, other than the container is responsible for starting them. This means its near impossible for an external library which is not Java EE aware to start these built in contexts. Being able to reuse these contexts allow developers to build their beans once and reuse them in many use cases.
> These use cases may include:
> 1. Quartz Scheduler/CDI Integration. A Prototype of this is available in DeltaSpike, where jobs can be managed beans, by overriding the InstanceJobFactory, and can have contexts started via an annotation. To bring it a step further, Quartz, in order to mirror Java EE capabilities, may want to say that during the execution of a job, an instance of a request context is active. To do this, the developer should not need to do anything, but instead Quartz may automatically register a job listener that starts and stops the context (see: http://www.quartz-scheduler.org/documentation/quartz-2.2.x/cookbook/JobLi...)
> 2. Camel-CDI. Camel may want to say that during the execution of a route, a request context is active.
> 3. Netty/CDI (or any arbitrary network based server). During the reception of a message over TCP, a request is active. Likewise, for the entire TCP connection a session context is active.
> 4. Sparkjava/CDI. Assuming that sparkjava isn't running in a servlet container, during the execution of an arbitrary reactive method call, a request context is available for use.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months