Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-18857 Java EE 7 Batch support
  3. JBIDE-19507

Search and rename participants for Batch Artifacts

    XMLWordPrintable

Details

    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:

      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 {
      	}
      }
      

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

      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:

      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:

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

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

      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:

      2. Should be able to add changes in Batch Property Rename for references in job.xml files.

      Note: Rename Participant does make sense only for Batch Properties which name comes from Java Field Name, not from annotation @BatchProperty

      Example:

      package batch;
      
      import javax.batch.api.BatchProperty;
      import javax.batch.api.Batchlet;
      import javax.inject.Inject;
      import javax.inject.Named;
      
      @Named
      public class RenamablePropertyBatchlet implements Batchlet {
      	
      	@Inject @BatchProperty String otherName;
      
      	@Override
      	public String process() throws Exception {
      		return null;
      	}
      
      	@Override
      	public void stop() throws Exception {
      	}
      }
      

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

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

      Attachments

        1. SearchableExceptionReferences.png
          SearchableExceptionReferences.png
          85 kB
        2. SearchableBatchletReferences.png
          SearchableBatchletReferences.png
          79 kB
        3. PropertyRename.png
          PropertyRename.png
          68 kB
        4. FieldReference.png
          FieldReference.png
          57 kB
        5. ExceptionRename.png
          ExceptionRename.png
          89 kB
        6. BatchArtifactRename.png
          BatchArtifactRename.png
          89 kB

        Issue Links

          Activity

            People

              dazarov_jira Daniel Azarov (Inactive)
              dazarov_jira Daniel Azarov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: