Class StepLocatorStepFactoryBean
java.lang.Object
org.springframework.batch.core.step.StepLocatorStepFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Step>
public class StepLocatorStepFactoryBean
extends Object
implements org.springframework.beans.factory.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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTell clients that we are a factory forStep
instances.boolean
Always return true as optimization for bean factory.void
setStepLocator
(StepLocator stepLocator) void
setStepName
(String stepName)
-
Field Details
-
stepLocator
-
stepName
-
-
Constructor Details
-
StepLocatorStepFactoryBean
public StepLocatorStepFactoryBean()
-
-
Method Details
-
setStepLocator
- Parameters:
stepLocator
- instance ofStepLocator
to be used by the factory bean.
-
setStepName
- Parameters:
stepName
- the name to be associated with the step.
-
getObject
-
getObjectType
Tell clients that we are a factory forStep
instances.- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Step>
- See Also:
-
FactoryBean.getObjectType()
-
isSingleton
public boolean isSingleton()Always return true as optimization for bean factory.- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<Step>
- See Also:
-
FactoryBean.isSingleton()
-