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

Alexey Kazakov (JIRA) issues at jboss.org
Thu Apr 30 15:47:45 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-19701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-19701:
-----------------------------------
    Description: 
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}

  was:
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.



> 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
>              Labels: new_and_noteworthy
>             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}



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


More information about the jbosstools-issues mailing list