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:
  • Constructor Details

    • JobOperatorFactoryBean

      public JobOperatorFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • setJobRegistry

      public void setJobRegistry(JobRegistry jobRegistry)
      Setter for the job registry.
      Parameters:
      jobRegistry - the job registry to set
    • setJobLauncher

      public void setJobLauncher(JobLauncher jobLauncher)
      Setter for the job launcher.
      Parameters:
      jobLauncher - the job launcher to set
    • setJobRepository

      public void setJobRepository(JobRepository jobRepository)
      Setter for the job repository.
      Parameters:
      jobRepository - the job repository to set
    • setJobExplorer

      public void setJobExplorer(JobExplorer jobExplorer)
      Setter for the job explorer.
      Parameters:
      jobExplorer - the job explorer to set
    • setJobParametersConverter

      public void setJobParametersConverter(JobParametersConverter jobParametersConverter)
      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

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<JobOperator>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<JobOperator>
    • getObject

      public JobOperator getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<JobOperator>
      Throws:
      Exception