public class JobLocatorStepLocator
extends java.lang.Object
implements org.springframework.batch.core.step.StepLocator
| Constructor and Description |
|---|
JobLocatorStepLocator()
Convenience constructor for declarative configuration.
|
JobLocatorStepLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator)
Create an instance from this
JobLocator. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.Step |
getStep(java.lang.String path)
Locate a step by referencing it through its parent job with a separator,
e.g.
|
java.util.Collection<java.lang.String> |
getStepNames()
Loop through all the jobs and pull out their step names.
|
void |
setJobLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator) |
public JobLocatorStepLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator)
JobLocator.jobLocator - a JobLocatorpublic JobLocatorStepLocator()
public void setJobLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator)
jobLocator - the jobLocator to setpublic org.springframework.batch.core.Step getStep(java.lang.String path)
throws org.springframework.batch.core.step.NoSuchStepException
job-name/step-name. The separator defaults to a forward
slash.getStep in interface org.springframework.batch.core.step.StepLocatororg.springframework.batch.core.step.NoSuchStepExceptionStepLocator.getStep(String)public java.util.Collection<java.lang.String> getStepNames()
getStep(String) (i.e.
with a separator).getStepNames in interface org.springframework.batch.core.step.StepLocatorStepLocator.getStepNames()Copyright © 2015. All Rights Reserved.