org.springframework.batch.admin.sample
Class StepLocatorStepFactoryBean
java.lang.Object
org.springframework.batch.admin.sample.StepLocatorStepFactoryBean
- All Implemented Interfaces:
- FactoryBean<Step>
public class StepLocatorStepFactoryBean
- extends Object
- implements FactoryBean<Step>
Convenience factory for Step instances given a StepLocator.
Most implementations of Job implement StepLocator, so that can be a
good starting point.
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stepLocator
public StepLocator stepLocator
stepName
public String stepName
StepLocatorStepFactoryBean
public StepLocatorStepFactoryBean()
setStepLocator
public void setStepLocator(StepLocator stepLocator)
- Parameters:
stepLocator -
setStepName
public void setStepName(String stepName)
- Parameters:
stepName -
getObject
public Step getObject()
throws Exception
- Specified by:
getObject in interface FactoryBean<Step>
- Throws:
Exception- See Also:
FactoryBean.getObject()
getObjectType
public Class<? extends Step> getObjectType()
- Tell clients that we are a factory for
Step instances.
- Specified by:
getObjectType in interface FactoryBean<Step>
- See Also:
FactoryBean.getObjectType()
isSingleton
public boolean isSingleton()
- Always return true as optimization for bean factory.
- Specified by:
isSingleton in interface FactoryBean<Step>
- See Also:
FactoryBean.isSingleton()
Copyright © 2011. All Rights Reserved.