Class JobParserJobFactoryBean
java.lang.Object
org.springframework.batch.core.configuration.xml.JobParserJobFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<FlowJob>
,org.springframework.beans.factory.SmartFactoryBean<FlowJob>
public class JobParserJobFactoryBean
extends Object
implements org.springframework.beans.factory.SmartFactoryBean<FlowJob>
This
FactoryBean
is used by the batch namespace parser to create
FlowJob
objects. It stores all of the properties that are configurable on the
<job/>.- Since:
- 2.0.1
- Author:
- Dan Garrette, Dave Syer
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionConstructor for the factory bean that initializes the name. -
Method Summary
Modifier and TypeMethodDescriptionfinal FlowJob
boolean
boolean
boolean
void
Set the flow for the factory bean.void
setJobExecutionListeners
(JobExecutionListener[] jobExecutionListeners) void
setJobParametersIncrementer
(JobParametersIncrementer jobParametersIncrementer) Set theJobParametersIncrementer
for the factory bean.void
setJobParametersValidator
(JobParametersValidator jobParametersValidator) Set theJobParametersValidator
for the factory bean.void
setJobRepository
(JobRepository jobRepository) Set theJobRepository
for the factory bean.void
setRestartable
(Boolean restartable) Set the restartable flag for the factory bean.
-
Constructor Details
-
JobParserJobFactoryBean
Constructor for the factory bean that initializes the name.- Parameters:
name
- The name to be used by the factory bean.
-
-
Method Details
-
getObject
-
setRestartable
Set the restartable flag for the factory bean.- Parameters:
restartable
- The restartable flag to be used by the factory bean.
-
setJobRepository
Set theJobRepository
for the factory bean.- Parameters:
jobRepository
- TheJobRepository
to be used by the factory bean.
-
setJobParametersValidator
Set theJobParametersValidator
for the factory bean.- Parameters:
jobParametersValidator
- TheJobParametersValidator
to be used by the factory bean.
-
getJobRepository
- Returns:
- The
JobRepository
used by the factory bean.
-
setJobExecutionListeners
-
setJobParametersIncrementer
Set theJobParametersIncrementer
for the factory bean.- Parameters:
jobParametersIncrementer
- TheJobParametersIncrementer
to be used by the factory bean.
-
setFlow
Set the flow for the factory bean.- Parameters:
flow
- TheFlow
to be used by the factory bean.
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<FlowJob>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<FlowJob>
-
isEagerInit
public boolean isEagerInit()- Specified by:
isEagerInit
in interfaceorg.springframework.beans.factory.SmartFactoryBean<FlowJob>
-
isPrototype
public boolean isPrototype()- Specified by:
isPrototype
in interfaceorg.springframework.beans.factory.SmartFactoryBean<FlowJob>
-