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
. It
declares abstract methods for providing DAO object implementations.- Since:
- 2.0
- Author:
- Dave Syer, 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 TypeMethodDescriptionprotected abstract ExecutionContextDao
Creates an execution context instance data access object (DAO).protected abstract JobExecutionDao
Creates a job execution data access object (DAO).protected abstract JobInstanceDao
Creates a job instance data access object (DAO).protected abstract StepExecutionDao
Creates a step execution data access object (DAO).Returns the type of object to be returned fromFactoryBean.getObject()
.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
getObject
-
Constructor Details
-
AbstractJobExplorerFactoryBean
public AbstractJobExplorerFactoryBean()
-
-
Method Details
-
createJobInstanceDao
Creates a job instance data access object (DAO).- Returns:
- a fully configured
JobInstanceDao
implementation. - Throws:
Exception
- thrown if error occurs during JobInstanceDao creation.
-
createJobExecutionDao
Creates a job execution data access object (DAO).- Returns:
- a fully configured
JobExecutionDao
implementation. - Throws:
Exception
- thrown if error occurs during JobExecutionDao creation.
-
createStepExecutionDao
Creates a step execution data access object (DAO).- Returns:
- a fully configured
StepExecutionDao
implementation. - Throws:
Exception
- thrown if error occurs during StepExecutionDao creation.
-
createExecutionContextDao
Creates an execution context instance data access object (DAO).- Returns:
- fully configured
ExecutionContextDao
implementation. - Throws:
Exception
- thrown if error occurs during ExecutionContextDao creation.
-
getObjectType
Returns 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>
-