[jbosstools-issues] [JBoss JIRA] (JBIDE-19507) Search and rename participants for Batch Artifacts

Daniel Azarov (JIRA) issues at jboss.org
Wed Apr 8 16:42:18 EDT 2015


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

Daniel Azarov updated JBIDE-19507:
----------------------------------
    Description: 
*Search Participant*

1. Should be able to find references in job.xml files for Batch Artifact Class IType

Example:
During the search for references for class "SearchableBatchlet" like:
{code}
package batch;

import javax.batch.api.BatchProperty;
import javax.batch.api.Batchlet;
import javax.inject.Inject;
import javax.inject.Named;

@Named
public class SearchableBatchlet implements Batchlet {
	
	@Inject @BatchProperty(name="secondName") String otherName;

	@Override
	public String process() throws Exception {
		return null;
	}

	@Override
	public void stop() throws Exception {
	}
}
{code}

In the search result should be added references in jbob.xml files like this:

!SearchableBatchletReferences.png!

2. Should be able to find references in job.xml files for Batch Artifact Property IField

Example:
During the search for references for field "otherName" of class "SearchableBatchlet" in the search result should be added references in jbob.xml files like this:

!FieldReference.png!

3. Should be able to find references in job.xml files for Exception Class IType

Example:
During the search for references for class "SearchableException" like:
{code}
package batch;

public class SearchableException extends Exception{
	private static final long serialVersionUID = 1L;

}

{code}

In the search result should be added references in jbob.xml files like this:

!SearchableExceptionReferences.png!

*Rename Participant*

1. Should be able to add changes in Batch Artifact Class Rename for references in job.xml files.

Note: Rename Participant does make sense only for Batch Artifacts which name comes from Java Class Name, not from annotation @Named

Example:

During rename of class "SearchableBatchlet" changes for job.xml references should be added in Refactoring:

!BatchArtifactRename.png!

2. Should be able to add changes in Exception Class Rename for references in job.xml files.

Example:

During rename of class "SearchableException" changes for job.xml references should be added in Refactoring:

!ExceptionRename.png!

  was:
*Search Participant*

1. Should be able to find references in job.xml files for Batch Artifact Class IType

Example:
During the search for references for class "SearchableBatchlet" like:
{code}
package batch;

import javax.batch.api.BatchProperty;
import javax.batch.api.Batchlet;
import javax.inject.Inject;
import javax.inject.Named;

@Named
public class SearchableBatchlet implements Batchlet {
	
	@Inject @BatchProperty(name="secondName") String otherName;

	@Override
	public String process() throws Exception {
		return null;
	}

	@Override
	public void stop() throws Exception {
	}
}
{code}

In the search result should be added references in jbob.xml files like this:

!SearchableBatchletReferences.png!

2. Should be able to find references in job.xml files for Batch Artifact Property IField

Example:
During the search for references for field "otherName" of class "SearchableBatchlet" in the search result should be added references in jbob.xml files like this:

!FieldReference.png!

3. Should be able to find references in job.xml files for Exception Class IType

Example:
During the search for references for class "SearchableException" like:
{code}
package batch;

public class SearchableException extends Exception{
	private static final long serialVersionUID = 1L;

}

{code}

In the search result should be added references in jbob.xml files like this:

!SearchableExceptionReferences.png!

*Rename Participant*

1. Should be able to add changes in Batch Artifact Class Rename for references in job.xml files.

Example:

During rename of class "SearchableBatchlet" changes for job.xml references should be added in Refactoring:

!BatchArtifactRename.png!

2. Should be able to add changes in Exception Class Rename for references in job.xml files.

Example:

During rename of class "SearchableException" changes for job.xml references should be added in Refactoring:

!ExceptionRename.png!



> Search and rename participants for Batch Artifacts
> --------------------------------------------------
>
>                 Key: JBIDE-19507
>                 URL: https://issues.jboss.org/browse/JBIDE-19507
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: batch
>            Reporter: Daniel Azarov
>            Assignee: Daniel Azarov
>              Labels: new_and_noteworthy
>             Fix For: 4.3.0.Alpha2
>
>         Attachments: BatchArtifactRename.png, ExceptionRename.png, FieldReference.png, SearchableBatchletReferences.png, SearchableExceptionReferences.png
>
>
> *Search Participant*
> 1. Should be able to find references in job.xml files for Batch Artifact Class IType
> Example:
> During the search for references for class "SearchableBatchlet" like:
> {code}
> package batch;
> import javax.batch.api.BatchProperty;
> import javax.batch.api.Batchlet;
> import javax.inject.Inject;
> import javax.inject.Named;
> @Named
> public class SearchableBatchlet implements Batchlet {
> 	
> 	@Inject @BatchProperty(name="secondName") String otherName;
> 	@Override
> 	public String process() throws Exception {
> 		return null;
> 	}
> 	@Override
> 	public void stop() throws Exception {
> 	}
> }
> {code}
> In the search result should be added references in jbob.xml files like this:
> !SearchableBatchletReferences.png!
> 2. Should be able to find references in job.xml files for Batch Artifact Property IField
> Example:
> During the search for references for field "otherName" of class "SearchableBatchlet" in the search result should be added references in jbob.xml files like this:
> !FieldReference.png!
> 3. Should be able to find references in job.xml files for Exception Class IType
> Example:
> During the search for references for class "SearchableException" like:
> {code}
> package batch;
> public class SearchableException extends Exception{
> 	private static final long serialVersionUID = 1L;
> }
> {code}
> In the search result should be added references in jbob.xml files like this:
> !SearchableExceptionReferences.png!
> *Rename Participant*
> 1. Should be able to add changes in Batch Artifact Class Rename for references in job.xml files.
> Note: Rename Participant does make sense only for Batch Artifacts which name comes from Java Class Name, not from annotation @Named
> Example:
> During rename of class "SearchableBatchlet" changes for job.xml references should be added in Refactoring:
> !BatchArtifactRename.png!
> 2. Should be able to add changes in Exception Class Rename for references in job.xml files.
> Example:
> During rename of class "SearchableException" changes for job.xml references should be added in Refactoring:
> !ExceptionRename.png!



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list