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,MongoJobExplorerFactoryBean
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract ExecutionContextDaoCreates an execution context instance data access object (DAO).protected abstract JobExecutionDaoCreates a job execution data access object (DAO).protected abstract JobInstanceDaoCreates a job instance data access object (DAO).protected abstract StepExecutionDaoCreates a step execution data access object (DAO).Returns the type of object to be returned fromgetObject().org.springframework.transaction.PlatformTransactionManagerThe transaction manager used in this factory.booleanvoidsetTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource) Set the transaction attributes source to use in the created proxy.voidsetTransactionManager(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
JobInstanceDaoimplementation. - Throws:
Exception- thrown if error occurs during JobInstanceDao creation.
-
createJobExecutionDao
Creates a job execution data access object (DAO).- Returns:
- a fully configured
JobExecutionDaoimplementation. - Throws:
Exception- thrown if error occurs during JobExecutionDao creation.
-
createStepExecutionDao
Creates a step execution data access object (DAO).- Returns:
- a fully configured
StepExecutionDaoimplementation. - Throws:
Exception- thrown if error occurs during StepExecutionDao creation.
-
createExecutionContextDao
Creates an execution context instance data access object (DAO).- Returns:
- fully configured
ExecutionContextDaoimplementation. - 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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObjectType
Returns the type of object to be returned fromgetObject().- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<JobExplorer>- Returns:
JobExplorer.class- See Also:
-
FactoryBean.getObjectType()
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<JobExplorer>
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<JobExplorer>- Throws:
Exception
-