Hi Mark, here is the JIRA issue https://issues.apache.org/jira/browse/OWB-670 Let me know if I can help, although I just started learning the impl.
Regards On Wed, May 16, 2012 at 10:14 AM, Mark Struberg <[email protected]> wrote: > Hi Nikolai! > > Can you please create a JIRA for it? > https://issues.apache.org/jira/browse/OWB > > It's much easier to track it that way. > I'm currently busy with refactoring the CODI ClientSideWindowHandler, but > will try to come back to OWB later that week. > > Gurkan, can you please take care of this in the meantime? > > > Txs and LieGrue, > strub > > > > ----- Original Message ----- > > From: Nikolai Dokovski <[email protected]> > > To: [email protected] > > Cc: > > Sent: Tuesday, May 15, 2012 10:54 PM > > Subject: ProcessInjectionTarget event fired a bit late > > > > Hi > > I was executing > org.jboss.jsr299.tck.tests.extensions.producer.ProducerTest > > from jboss jsr299 tck and it failed at > testSettingInjectionTargetReplacesIt > > test. > > While looking around to see what the problem might be I noticed that the > > test registers an observer where it wraps the InjectionTarget. > > > > public void processBirdCage(@Observes ProcessInjectionTarget<BirdCage> > > event) > > { > > event.setInjectionTarget(new > > CheckableInjectionTarget(event.getInjectionTarget())); > > } > > > > The test fails because it expects the wrapper to be called before the > bean > > is created but the event of the observer is fired later, after the bean > is > > created. > > > > Digging further I noticed that the fireProcessInjectionTargetEvent is > > triggered in org.apache.webbeans.config.BeansDeployer > > after checking the annotation type being Interceptor or Decorator. > > > > Here is the code snippet: > > if (logger.wblWillLogDebug()) > > { > > logger.debug("Found Managed Bean with class name : > > [{0}]", annotatedType.getJavaClass().getName()); > > } > > > > webBeansContext.getWebBeansUtil().defineManagedBean(managedBeanCreator, > > > > processInjectionTargetEvent, true); > > } > > > > if(processInjectionTarget != null) > > { > > > > > webBeansContext.getWebBeansUtil().fireProcessInjectionTargetEvent(processInjectionTarget); > > } > > > > return true; > > } > > > > I just want to ask whether fireProcessInjectionTargetEvent should be > called > > before defineManagedBean? > > > > Regards > > >
