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
,MapJobExplorerFactoryBean
public abstract class AbstractJobExplorerFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<JobExplorer>
AFactoryBean
that automates the creation of aSimpleJobExplorer
. Declares abstract methods for providing DAO object implementations.- Since:
- 2.0
- Author:
- Dave Syer
- See Also:
JobExplorerFactoryBean
,MapJobExplorerFactoryBean
Constructor Summary
Constructors Constructor Description AbstractJobExplorerFactoryBean()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ExecutionContextDao
createExecutionContextDao()
protected abstract JobExecutionDao
createJobExecutionDao()
protected abstract JobInstanceDao
createJobInstanceDao()
protected abstract StepExecutionDao
createStepExecutionDao()
java.lang.Class<JobExplorer>
getObjectType()
The type of object to be returned fromFactoryBean.getObject()
.boolean
isSingleton()
Method Detail
createJobInstanceDao
protected abstract JobInstanceDao createJobInstanceDao() throws java.lang.Exception
- Returns:
- fully configured
JobInstanceDao
implementation. - Throws:
java.lang.Exception
- thrown if error occurs during JobInstanceDao creation.
createJobExecutionDao
protected abstract JobExecutionDao createJobExecutionDao() throws java.lang.Exception
- Returns:
- fully configured
JobExecutionDao
implementation. - Throws:
java.lang.Exception
- thrown if error occurs during JobExecutionDao creation.
createStepExecutionDao
protected abstract StepExecutionDao createStepExecutionDao() throws java.lang.Exception
- Returns:
- fully configured
StepExecutionDao
implementation. - Throws:
java.lang.Exception
- thrown if error occurs during StepExecutionDao creation.
createExecutionContextDao
protected abstract ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
- Returns:
- fully configured
ExecutionContextDao
implementation. - Throws:
java.lang.Exception
- thrown if error occurs during ExecutionContextDao creation.
getObjectType
public java.lang.Class<JobExplorer> getObjectType()
The type of object to be returned fromFactoryBean.getObject()
.- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<JobExplorer>
- Returns:
- JobExplorer.class
- See Also:
FactoryBean.getObjectType()
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<JobExplorer>