Class AbstractJobExplorerFactoryBean

java.lang.Object
org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<JobExplorer>, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
JobExplorerFactoryBean

public abstract class AbstractJobExplorerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<JobExplorer>, org.springframework.beans.factory.InitializingBean
A FactoryBean that automates the creation of a SimpleJobExplorer. It declares abstract methods for providing DAO object implementations.
Since:
2.0
Author:
Dave Syer, Mahmoud Ben Hassine
See Also:
  • Constructor Details

    • AbstractJobExplorerFactoryBean

      public AbstractJobExplorerFactoryBean()
  • Method Details

    • createJobInstanceDao

      protected abstract JobInstanceDao createJobInstanceDao() throws Exception
      Creates a job instance data access object (DAO).
      Returns:
      a fully configured JobInstanceDao implementation.
      Throws:
      Exception - thrown if error occurs during JobInstanceDao creation.
    • createJobExecutionDao

      protected abstract JobExecutionDao createJobExecutionDao() throws Exception
      Creates a job execution data access object (DAO).
      Returns:
      a fully configured JobExecutionDao implementation.
      Throws:
      Exception - thrown if error occurs during JobExecutionDao creation.
    • createStepExecutionDao

      protected abstract StepExecutionDao createStepExecutionDao() throws Exception
      Creates a step execution data access object (DAO).
      Returns:
      a fully configured StepExecutionDao implementation.
      Throws:
      Exception - thrown if error occurs during StepExecutionDao creation.
    • createExecutionContextDao

      protected abstract ExecutionContextDao createExecutionContextDao() throws Exception
      Creates an execution context instance data access object (DAO).
      Returns:
      fully configured ExecutionContextDao implementation.
      Throws:
      Exception - thrown if error occurs during ExecutionContextDao creation.
    • setTransactionManager

      public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
      Public setter for the PlatformTransactionManager.
      Parameters:
      transactionManager - the transactionManager to set
      Since:
      5.0
    • getTransactionManager

      public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
      The transaction manager used in this factory. Useful to inject into steps and jobs, to ensure that they are using the same instance.
      Returns:
      the transactionManager
      Since:
      5.0
    • 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.
      Since:
      5.0
    • afterPropertiesSet

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

      public Class<JobExplorer> getObjectType()
      Returns the type of object to be returned from getObject().
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<JobExplorer>
      Returns:
      JobExplorer.class
      See Also:
      • FactoryBean.getObjectType()
    • isSingleton

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

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