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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>booleanvoidsetJobExplorer(JobExplorer jobExplorer) Setter for the job explorer.voidsetJobLauncher(JobLauncher jobLauncher) Setter for the job launcher.voidsetJobParametersConverter(JobParametersConverter jobParametersConverter) Setter for the job parameters converter.voidsetJobRegistry(JobRegistry jobRegistry) Setter for the job registry.voidsetJobRepository(JobRepository jobRepository) Setter for the job repository.voidsetTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource) Set the transaction attributes source to use in the created proxy.voidsetTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) Setter for the transaction manager.
-
Constructor Details
-
JobOperatorFactoryBean
public JobOperatorFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin 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:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<JobOperator>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<JobOperator>
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<JobOperator>- Throws:
Exception
-