I agree it may not be necessary, but Gavin has strongly hinted that he expected Decorators (and maybe even Interceptors) to be implemented using subclassing. Seems our current solution works in a spec compliant way for normal scoped beans though. Not sure if any MRs to the spec will change that.
Sincerely, Joe On Wed, Apr 7, 2010 at 3:48 PM, Gurkan Erdogdu <gurkanerdo...@yahoo.com>wrote: > Actually, for normal scoped beans it is not necessary to add byte code > injection altough it can be done. Because running code is there, you could > concentrate on some other stuff. But it is handy way to use it on > DependentScoped beans interceptors, because spec. talks about subclassing > for dependent scoped beans. > > Thanks; > > --Gurkan > > > > > ________________________________ > From: Mark Struberg <strub...@yahoo.de> > To: dev@openwebbeans.apache.org > Sent: Wed, April 7, 2010 10:21:32 PM > Subject: Re: are @PostConstruct and @PreDestroy really interceptor > functions? > > Thanks Gurkan! > > I now also found the utility method who filters out the AROUND_INVOKE > interceptors we need. > > Did you look at the test code which shows the principal way to create > subclasses which I committed? > wdyt? > > LieGrue, > strub > > --- Gurkan Erdogdu <gurkanerdo...@yahoo.com> schrieb am Mi, 7.4.2010: > > > Von: Gurkan Erdogdu <gurkanerdo...@yahoo.com> > > Betreff: Re: are @PostConstruct and @PreDestroy really interceptor > functions? > > An: dev@openwebbeans.apache.org > > Datum: Mittwoch, 7. April, 2010 21:19 Uhr > > Those are not handled by > > InterceptorHandler. These are defined in > > AbstractInjectionTargetBean#postConstruct or preDestroy > > > > > > > > > > ________________________________ > > From: Mark Struberg <strub...@yahoo.de> > > To: dev@openwebbeans.apache.org > > Sent: Wed, April 7, 2010 7:56:37 PM > > Subject: are @PostConstruct and @PreDestroy really > > interceptor functions? > > > > Hi! > > > > Currently we handle @PostConstruct and @PreDestroy methods > > via the InterceptorHandler. > > > > Is this really necessary? > > > > Those functions are directly called by the container in > > very clear defined situations in the lifecycle. And they > > always get called from _inside_ the container and not > > triggered by any client code. > > > > So can we move those 2 out of the interceptor stack? > > > > wdyt? > > > > LieGrue, > > strub > > > > __________________________________________________ > > Do You Yahoo!? > > Sie sind Spam leid? Yahoo! Mail verfügt über einen > > herausragenden Schutz gegen Massenmails. > > http://mail.yahoo.com > > > > > > > > > > ___________________________________________________________________ > > Yahoo! Türkiye açıldı! http://yahoo.com.tr > > İnternet üzerindeki en iyi içeriği Yahoo! Türkiye > > sizlere sunuyor! > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > > > > ___________________________________________________________________ > Yahoo! Türkiye açıldı! http://yahoo.com.tr > İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor! >