org.springframework.batch.core.explore.support
Class MapJobExplorerFactoryBean
java.lang.Object
org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
org.springframework.batch.core.explore.support.MapJobExplorerFactoryBean
- All Implemented Interfaces:
- FactoryBean, InitializingBean
public class MapJobExplorerFactoryBean
- extends AbstractJobExplorerFactoryBean
- implements InitializingBean
A FactoryBean
that automates the creation of a
SimpleJobExplorer
using in-memory DAO implementations.
- Since:
- 2.0
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapJobExplorerFactoryBean
public MapJobExplorerFactoryBean(MapJobRepositoryFactoryBean repositoryFactory)
- Create an instance with the provided
MapJobRepositoryFactoryBean
as a source of Dao instances.
- Parameters:
repositoryFactory
-
MapJobExplorerFactoryBean
public MapJobExplorerFactoryBean()
- Create a factory with no
MapJobRepositoryFactoryBean
. 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.
- Parameters:
repositoryFactory
- a MapJobExplorerFactoryBean
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
- See Also:
InitializingBean.afterPropertiesSet()
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao()
throws Exception
- Specified by:
createJobExecutionDao
in class AbstractJobExplorerFactoryBean
- Returns:
- fully configured
JobExecutionDao
implementation.
- Throws:
Exception
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao()
throws Exception
- Specified by:
createJobInstanceDao
in class AbstractJobExplorerFactoryBean
- Returns:
- fully configured
JobInstanceDao
implementation.
- Throws:
Exception
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao()
throws Exception
- Specified by:
createStepExecutionDao
in class AbstractJobExplorerFactoryBean
- Throws:
Exception
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao()
throws Exception
- Specified by:
createExecutionContextDao
in class AbstractJobExplorerFactoryBean
- Throws:
Exception
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean
- Throws:
Exception
Copyright © 2013 SpringSource. All Rights Reserved.