batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BATCHEE-28) @Inject JobContext only works during loadArtifact
Date Sat, 26 Apr 2014 02:04:16 GMT

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

Hudson commented on BATCHEE-28:
-------------------------------

SUCCESS: Integrated in batchee #522 (See [https://builds.apache.org/job/batchee/522/])
BATCHEE-28 provide injection in all batch lifecycle phases (struberg: rev 703d241c47215468f1e9837e3f47032148ff5f88)
* jbatch/src/main/java/org/apache/batchee/container/proxy/ProxyFactory.java
* jbatch/src/main/java/org/apache/batchee/container/proxy/BatchProxyInvocationHandler.java
* jbatch/src/test/java/org/apache/batchee/test/mock/InjectionsMock.java


> @Inject JobContext only works during loadArtifact
> -------------------------------------------------
>
>                 Key: BATCHEE-28
>                 URL: https://issues.apache.org/jira/browse/BATCHEE-28
>             Project: BatchEE
>          Issue Type: Bug
>          Components: jbatch-core
>    Affects Versions: 0.1-incubating
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.2-incubating
>
>
> Using @Inject JobContext and various other JBatch artifacts only works during the creation
of the ItemReader, Processor and Writer, etc. 
> The ProxyFactory#INJECTION_CONTEXT is set only during #loadArtifact.
> If an e.g. @StepScoped bean with a @Inject JobContext gets only accessed during the readItem()
method (means _after_ creating the ItemReader), the ThreadLocal is not set anymore and thus
the injected JobContext in this contextual instance is null.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message