public class StepLocatorStepFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<Step>
Step
instances given a StepLocator
.
Most implementations of Job
implement StepLocator, so that can be a
good starting point.Modifier and Type | Field and Description |
---|---|
StepLocator |
stepLocator |
java.lang.String |
stepName |
Constructor and Description |
---|
StepLocatorStepFactoryBean() |
Modifier and Type | Method and Description |
---|---|
Step |
getObject() |
java.lang.Class<? extends Step> |
getObjectType()
Tell clients that we are a factory for
Step instances. |
boolean |
isSingleton()
Always return true as optimization for bean factory.
|
void |
setStepLocator(StepLocator stepLocator) |
void |
setStepName(java.lang.String stepName) |
public StepLocator stepLocator
public java.lang.String stepName
public void setStepLocator(StepLocator stepLocator)
stepLocator
- instance of StepLocator
to be used by the factory bean.public void setStepName(java.lang.String stepName)
stepName
- the name to be associated with the step.public Step getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<Step>
java.lang.Exception
FactoryBean.getObject()
public java.lang.Class<? extends Step> getObjectType()
Step
instances.getObjectType
in interface org.springframework.beans.factory.FactoryBean<Step>
FactoryBean.getObjectType()
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<Step>
FactoryBean.isSingleton()