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:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected 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 fromgetObject()
.org.springframework.transaction.PlatformTransactionManager
The transaction manager used in this factory.boolean
void
setTransactionAttributeSource
(org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource) Set the transaction attributes source to use in the created proxy.void
setTransactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager) Public setter for thePlatformTransactionManager
.
-
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.
-
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) Public setter for thePlatformTransactionManager
.- 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
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
getObjectType
Returns the type of object to be returned fromgetObject()
.- 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>
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<JobExplorer>
- Throws:
Exception
-