You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2012/09/03 14:56:08 UTC

[jira] [Created] (OWB-700) ProcessInjectionTarget.setInjectionTarget() has no effect when trying to post process beans

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

[jira] [Commented] (OWB-700) ProcessInjectionTarget.setInjectionTarget() has no effect when trying to post process beans

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ 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

[jira] [Commented] (OWB-700) ProcessInjectionTarget.setInjectionTarget() has no effect when trying to post process beans

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447505#comment-13447505 ] 

Charles Moulliard commented on OWB-700:
---------------------------------------

James,

I have upgraded camel-cdi component to use OpenWebBeans 1.1.5 and DeltaSpike 0.3-incubating and the test pass successfully like also all the others.
                
> 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