james strachan created OWB-700:
----------------------------------
Summary: ProcessInjectionTarget.setInjectionTarget() has no effect
when trying to post process beans
Key: OWB-700
URL: https://issues.apache.org/jira/browse/OWB-700
Project: OpenWebBeans
Issue Type: Bug
Reporter: james strachan
In Camel we use this mechanism as a kind of "Spring BeanPostProcessor" like
capability to perform our own custom injection on beans created via CDI.
Here's the code
http://svn.apache.org/viewvc/camel/trunk/components/camel-cdi/src/main/java/org/apache/camel/component/cdi/internal/CamelExtension.java?revision=1380220&view=markup
e.g. look at line 169 onwards; we create a delegate InjectionTarget so we can
post process created objects.
This works great in Weld - but I've never seen OWB ever invoke the new
InjectionTarget instance at all (on any of its methods). I suspect it doesn't
allow the InjectionTarget to be changed?
To try this out checkout Apache Camel then run...
{code}
cd components/camel-cdi
mvn test -Dtest=ProduceInjectTest -Powb
{code}
which shows the failure occurring. Using weld it works fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira