You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2012/09/03 15:17:07 UTC
[jira] [Commented] (OWB-700)
ProcessInjectionTarget.setInjectionTarget() has no effect when trying to
post process beans
[ https://issues.apache.org/jira/browse/OWB-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447261#comment-13447261 ]
Romain Manni-Bucau commented on OWB-700:
----------------------------------------
Did you try with last version?
> 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