[jbosstools-issues] [JBoss JIRA] (JBIDE-19701) Support javax.batch.runtime.context.JobContext injections

Alexey Kazakov (JIRA) issues at jboss.org
Thu Apr 23 16:44:52 EDT 2015


Alexey Kazakov created JBIDE-19701:
--------------------------------------

             Summary: Support javax.batch.runtime.context.JobContext injections
                 Key: JBIDE-19701
                 URL: https://issues.jboss.org/browse/JBIDE-19701
             Project: Tools (JBoss Tools)
          Issue Type: Feature Request
          Components: batch, cdi-extensions
    Affects Versions: 4.3.0.Alpha2
            Reporter: Alexey Kazakov
            Assignee: Viacheslav Kabanovich
             Fix For: 4.3.0.Beta1


You can find an example of such injections here:
https://github.com/jboss-developer/jboss-sandbox-quickstarts/blob/master/batch-processing/src/main/java/org/jboss/as/quickstarts/batch/job/listener/JobListener.java#L38

1. Import https://github.com/jboss-developer/jboss-sandbox-quickstarts/ as an exisitng maven project
2. Open /batch-processing/src/main/java/org/jboss/as/quickstarts/batch/job/listener/JobListener.java
3. There should not be a warning message about no eligible beans for:
{code:java}
@Inject
private JobContext jobContext;
{code}
4. I guess this is a built-in CDI bean ([~scabanovich] please double check it). If so, the Ctrl+Click on this injection should open javax.batch.runtime.context.JobContext interface.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list