public class MapJobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements org.springframework.beans.factory.InitializingBean
FactoryBean
that automates the creation of a
SimpleJobExplorer
using in-memory DAO implementations.Constructor and Description |
---|
MapJobExplorerFactoryBean()
Create a factory with no
MapJobRepositoryFactoryBean . |
MapJobExplorerFactoryBean(MapJobRepositoryFactoryBean repositoryFactory)
Create an instance with the provided
MapJobRepositoryFactoryBean
as a source of Dao instances. |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected ExecutionContextDao |
createExecutionContextDao() |
protected JobExecutionDao |
createJobExecutionDao() |
protected JobInstanceDao |
createJobInstanceDao() |
protected StepExecutionDao |
createStepExecutionDao() |
JobExplorer |
getObject() |
void |
setRepositoryFactory(MapJobRepositoryFactoryBean repositoryFactory)
The repository factory that can be used to create daos for the explorer.
|
getObjectType, isSingleton
public MapJobExplorerFactoryBean(MapJobRepositoryFactoryBean repositoryFactory)
MapJobRepositoryFactoryBean
as a source of Dao instances.repositoryFactory
- provides the used JobRepository
public MapJobExplorerFactoryBean()
MapJobRepositoryFactoryBean
. It must be
injected as a property.public void setRepositoryFactory(MapJobRepositoryFactoryBean repositoryFactory)
repositoryFactory
- a MapJobExplorerFactoryBean
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
InitializingBean.afterPropertiesSet()
protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
createJobExecutionDao
in class AbstractJobExplorerFactoryBean
JobExecutionDao
implementation.java.lang.Exception
protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
createJobInstanceDao
in class AbstractJobExplorerFactoryBean
JobInstanceDao
implementation.java.lang.Exception
protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
createStepExecutionDao
in class AbstractJobExplorerFactoryBean
java.lang.Exception
protected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
createExecutionContextDao
in class AbstractJobExplorerFactoryBean
java.lang.Exception
public JobExplorer getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<JobExplorer>
java.lang.Exception