public class StepLocatorStepFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.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 |
---|---|
org.springframework.batch.core.step.StepLocator |
stepLocator |
String |
stepName |
Constructor and Description |
---|
StepLocatorStepFactoryBean() |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.core.Step |
getObject() |
Class<? extends org.springframework.batch.core.Step> |
getObjectType()
Tell clients that we are a factory for
Step instances. |
boolean |
isSingleton()
Always return true as optimization for bean factory.
|
void |
setStepLocator(org.springframework.batch.core.step.StepLocator stepLocator) |
void |
setStepName(String stepName) |
public org.springframework.batch.core.step.StepLocator stepLocator
public String stepName
public void setStepLocator(org.springframework.batch.core.step.StepLocator stepLocator)
stepLocator
- implementation of StepLocator
public void setStepName(String stepName)
stepName
- name of the step to be locatedpublic org.springframework.batch.core.Step getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Step>
Exception
FactoryBean.getObject()
public Class<? extends org.springframework.batch.core.Step> getObjectType()
Step
instances.getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Step>
FactoryBean.getObjectType()
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Step>
FactoryBean.isSingleton()
Copyright © 2015. All rights reserved.