public class JobLocatorStepLocator extends 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(String path)
Locate a step by referencing it through its parent job with a separator,
e.g.
|
Collection<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 JobLocator
public JobLocatorStepLocator()
public void setJobLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator)
jobLocator
- the jobLocator to setpublic org.springframework.batch.core.Step getStep(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.StepLocator
org.springframework.batch.core.step.NoSuchStepException
StepLocator.getStep(String)
public Collection<String> getStepNames()
getStep(String)
(i.e.
with a separator).getStepNames
in interface org.springframework.batch.core.step.StepLocator
StepLocator.getStepNames()
Copyright © 2015. All rights reserved.