public class JobFactoryBean extends java.lang.Object implements org.springframework.beans.factory.SmartFactoryBean<FlowJob>
FactoryBean
is used by the JSR-352 namespace parser to create
FlowJob
objects. It stores all of the properties that are
configurable on the <job/>.Constructor and Description |
---|
JobFactoryBean(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
JobRepository |
getJobRepository() |
FlowJob |
getObject() |
java.lang.Class<FlowJob> |
getObjectType() |
boolean |
isEagerInit() |
boolean |
isPrototype() |
boolean |
isSingleton() |
void |
setFlow(Flow flow) |
void |
setJobExecutionListeners(java.lang.Object[] jobListeners)
Addresses wrapping
JobListener as needed to be used with
the framework. |
void |
setJobExplorer(JobExplorer jobExplorer) |
void |
setJobParametersIncrementer(JobParametersIncrementer jobParametersIncrementer) |
void |
setJobParametersValidator(JobParametersValidator jobParametersValidator) |
void |
setJobRepository(JobRepository jobRepository) |
void |
setRestartable(java.lang.Boolean restartable) |
public final FlowJob getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<FlowJob>
java.lang.Exception
public void setJobExplorer(JobExplorer jobExplorer)
public void setRestartable(java.lang.Boolean restartable)
public void setJobRepository(JobRepository jobRepository)
public void setJobParametersValidator(JobParametersValidator jobParametersValidator)
public JobRepository getJobRepository()
public void setJobParametersIncrementer(JobParametersIncrementer jobParametersIncrementer)
public void setFlow(Flow flow)
public java.lang.Class<FlowJob> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<FlowJob>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<FlowJob>
public boolean isEagerInit()
isEagerInit
in interface org.springframework.beans.factory.SmartFactoryBean<FlowJob>
public boolean isPrototype()
isPrototype
in interface org.springframework.beans.factory.SmartFactoryBean<FlowJob>
public void setJobExecutionListeners(java.lang.Object[] jobListeners)
JobListener
as needed to be used with
the framework.jobListeners
- a list of all job listeners