[ 
https://issues.apache.org/jira/browse/DELTASPIKE-482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13858411#comment-13858411
 ] 

John D. Ament commented on DELTASPIKE-482:
------------------------------------------

[~romain.manni-bucau] what do you mean?  Method parameter injection is normal 
in two ways:

{code}
@Inject
public void setFooBean(FooBean fooBean) {
// inject and some init logic
}
{code}

and via observer methods

{code}
public void handleSomeObj(@Observes SomeEvent, FooBean fooBean) {
// do some work against the injected fooBean, means it clearer for cross 
scoping dependencies
}
{code}

Anyways, looks like adding the dep does fix it (it's a little odd that TomEE 
doesn't include this dep by default,but I'll comment on that in the TomEE JIRA)

> Multiple test fixes
> -------------------
>
>                 Key: DELTASPIKE-482
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-482
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.6
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>
> - TomEE container needs to declare dep on CDI enricher from Arq to do CDI 
> enrichment.
> - Update arquillian.xml globally to handle cdicontainer.version in managed 
> containers.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to