[cdi-dev] Producer wrapper

Antoine Sabot-Durand antoine at sabot-durand.net
Mon Dec 16 09:32:06 EST 2013


Romain,


I totally agree. Extension are a powerful tool but they are very intimidating to write for newbie : CDI bootstrap lifecycle doesn’t give an impression of easiness ;). I think we should think about a kind of « configuration layer » on top of extension for CDI 2.0 to allow an easier way to create simple extension…

Antoine


Le 16 déc. 2013 à 12:54, Romain Manni-Bucau <rmannibucau at gmail.com> a écrit :

> Sure! Thks Arne.
> 
> Le 16 déc. 2013 12:52, "Arne Limburg" <arne.limburg at openknowledge.de> a écrit :
> I guess, this mail was meant to go to the list ;-)
> 
> Von: Romain Manni-Bucau <rmannibucau at gmail.com>
> Datum: Montag, 16. Dezember 2013 12:50
> An: Arne Limburg <arne.limburg at openknowledge.de>
> Betreff: Re: [cdi-dev] Producer wrapper
> 
> I think the main issue is to avoid to make extensions hard/long to write (already too complicated for common stuff IMO) so i dont like this solution.
> 
> It is great to have a clean design...it is better to have something usable. CDI needs to work on the last quickly IMO before adding any feature.
> Le 16 déc. 2013 12:38, "Arne Limburg" <arne.limburg at openknowledge.de> a écrit :
> Hi,
> 
> 
> A simple solution to this topic would be to state in the spec, that, if an
> extension replaces an InjectionTarget or Producer it MUST provide a custom
> Implementation of an ObserverMethod for every private observer method of
> that bean.
> WDYT? Maybe we should discuss this in the meeting this evening?
> 
> Regards,
> Arne
> 
> Am 12.12.13 16:23 schrieb "Mark Struberg" unter <struberg at yahoo.de>:
> 
> >
> >1. Producer / InjectionTarget might create instances which are wrapped in
> >proxies.
> >
> >2. event observer methods are allowed to be private and thus are not in
> >the proxies.
> >
> >3. extensions are allowed to 'decorate' InjectionTargets and Producers.
> >
> >
> >This means that we need some unwrap method in the spec, right?
> >Currently this does not York.
> >
> >LieGrue,
> >strub
> >
> >_______________________________________________
> >cdi-dev mailing list
> >cdi-dev at lists.jboss.org
> >https://lists.jboss.org/mailman/listinfo/cdi-dev
> 
> 
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> 
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20131216/a2d2925e/attachment-0001.html 


More information about the cdi-dev mailing list