public class StepLocatorStepFactoryBean extends Object implements 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 |
String |
stepName |
| Constructor and Description |
|---|
StepLocatorStepFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
Step |
getObject() |
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(String stepName) |
public StepLocator stepLocator
public String stepName
public void setStepLocator(StepLocator stepLocator)
stepLocator - implementation of StepLocatorpublic void setStepName(String stepName)
stepName - name of the step to be locatedpublic Step getObject() throws Exception
getObject in interface FactoryBean<Step>ExceptionFactoryBean.getObject()public Class<? extends Step> getObjectType()
Step instances.getObjectType in interface FactoryBean<Step>FactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface FactoryBean<Step>FactoryBean.isSingleton()Copyright © 2015. All rights reserved.