Class JobOperatorFactoryBean
java.lang.Object
org.springframework.batch.core.launch.support.JobOperatorFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<JobOperator>
,org.springframework.beans.factory.InitializingBean
public class JobOperatorFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<JobOperator>, org.springframework.beans.factory.InitializingBean
Convenient factory bean that creates a transactional proxy around a
JobOperator
.- Since:
- 5.0
- Author:
- Mahmoud Ben Hassine
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<?>
boolean
void
setJobExplorer
(JobExplorer jobExplorer) Setter for the job explorer.void
setJobLauncher
(JobLauncher jobLauncher) Setter for the job launcher.void
setJobParametersConverter
(JobParametersConverter jobParametersConverter) Setter for the job parameters converter.void
setJobRegistry
(JobRegistry jobRegistry) Setter for the job registry.void
setJobRepository
(JobRepository jobRepository) Setter for the job repository.void
setTransactionAttributeSource
(org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource) Set the transaction attributes source to use in the created proxy.void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager) Setter for the transaction manager.
-
Constructor Details
-
JobOperatorFactoryBean
public JobOperatorFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setJobRegistry
Setter for the job registry.- Parameters:
jobRegistry
- the job registry to set
-
setJobLauncher
Setter for the job launcher.- Parameters:
jobLauncher
- the job launcher to set
-
setJobRepository
Setter for the job repository.- Parameters:
jobRepository
- the job repository to set
-
setJobExplorer
Setter for the job explorer.- Parameters:
jobExplorer
- the job explorer to set
-
setJobParametersConverter
Setter for the job parameters converter.- Parameters:
jobParametersConverter
- the job parameters converter to set
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) Setter for the transaction manager.- Parameters:
transactionManager
- the transaction manager to set
-
setTransactionAttributeSource
public void setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource) Set the transaction attributes source to use in the created proxy.- Parameters:
transactionAttributeSource
- the transaction attributes source to use in the created proxy.
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<JobOperator>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<JobOperator>
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<JobOperator>
- Throws:
Exception
-