Class DecisionStepFactoryBean
- java.lang.Object
- org.springframework.batch.core.jsr.configuration.xml.DecisionStepFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Step>
,org.springframework.beans.factory.InitializingBean
public class DecisionStepFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<Step>, org.springframework.beans.factory.InitializingBean
FactoryBean
for creating aDecisionStep
.- Since:
- 3.0
- Author:
- Michael Minella
Constructor Summary
Constructors Constructor Description DecisionStepFactoryBean()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
Step
getObject()
java.lang.Class<?>
getObjectType()
boolean
isSingleton()
void
setDecider(javax.batch.api.Decider decider)
void
setJobRepository(JobRepository jobRepository)
void
setName(java.lang.String name)
The name of the state
Method Detail
setJobRepository
public void setJobRepository(JobRepository jobRepository)
- Parameters:
jobRepository
- All steps need to be able to reference aJobRepository
setDecider
public void setDecider(javax.batch.api.Decider decider)
- Parameters:
decider
- aDecider
- Throws:
java.lang.IllegalArgumentException
- if the type passed in is not a valid type
setName
public void setName(java.lang.String name)
The name of the state- Parameters:
name
- the name to be used by the DecisionStep.
getObject
public Step getObject() throws java.lang.Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<Step>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<Step>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<Step>
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception