类 MapJobExplorerFactoryBean
- java.lang.Object
- org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
- org.springframework.batch.core.explore.support.MapJobExplorerFactoryBean
- 所有已实现的接口:
org.springframework.beans.factory.FactoryBean<JobExplorer>
,org.springframework.beans.factory.InitializingBean
public class MapJobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements org.springframework.beans.factory.InitializingBean
AFactoryBean
that automates the creation of aSimpleJobExplorer
using in-memory DAO implementations.- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 MapJobExplorerFactoryBean()
Create a factory with noMapJobRepositoryFactoryBean
.MapJobExplorerFactoryBean(MapJobRepositoryFactoryBean repositoryFactory)
Create an instance with the providedMapJobRepositoryFactoryBean
as a source of Dao instances.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.从类继承的方法 org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
getObjectType, isSingleton
构造器详细资料
MapJobExplorerFactoryBean
public MapJobExplorerFactoryBean(MapJobRepositoryFactoryBean repositoryFactory)
Create an instance with the providedMapJobRepositoryFactoryBean
as a source of Dao instances.- 参数:
repositoryFactory
- provides the usedJobRepository
MapJobExplorerFactoryBean
public MapJobExplorerFactoryBean()
Create a factory with noMapJobRepositoryFactoryBean
. It must be injected as a property.
方法详细资料
setRepositoryFactory
public void setRepositoryFactory(MapJobRepositoryFactoryBean repositoryFactory)
The repository factory that can be used to create daos for the explorer.- 参数:
repositoryFactory
- aMapJobExplorerFactoryBean
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
- thrown if error occurs.- 另请参阅:
InitializingBean.afterPropertiesSet()
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
- 指定者:
createJobExecutionDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
JobExecutionDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during JobExecutionDao creation.
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
- 指定者:
createJobInstanceDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
JobInstanceDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during JobInstanceDao creation.
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
- 指定者:
createStepExecutionDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
StepExecutionDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during StepExecutionDao creation.
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
- 指定者:
createExecutionContextDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
ExecutionContextDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during ExecutionContextDao creation.
getObject
public JobExplorer getObject() throws java.lang.Exception
- 指定者:
getObject
在接口中org.springframework.beans.factory.FactoryBean<JobExplorer>
- 抛出:
java.lang.Exception