Class AbstractJobExplorerFactoryBean

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

public abstract class AbstractJobExplorerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<JobExplorer>
A FactoryBean that automates the creation of a SimpleJobExplorer. 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
      Returns:
      fully configured JobInstanceDao implementation.
      Throws:
      Exception - thrown if error occurs during JobInstanceDao creation.
    • createJobExecutionDao

      protected abstract JobExecutionDao createJobExecutionDao() throws Exception
      Returns:
      fully configured JobExecutionDao implementation.
      Throws:
      Exception - thrown if error occurs during JobExecutionDao creation.
    • createStepExecutionDao

      protected abstract StepExecutionDao createStepExecutionDao() throws Exception
      Returns:
      fully configured StepExecutionDao implementation.
      Throws:
      Exception - thrown if error occurs during StepExecutionDao creation.
    • createExecutionContextDao

      protected abstract ExecutionContextDao createExecutionContextDao() throws Exception
      Returns:
      fully configured ExecutionContextDao implementation.
      Throws:
      Exception - thrown if error occurs during ExecutionContextDao creation.
    • getObjectType

      public Class<JobExplorer> getObjectType()
      The type of object to be returned from FactoryBean.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>