org.springframework.batch.core.explore.support
Class JobExplorerFactoryBean
java.lang.Object
org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
org.springframework.batch.core.explore.support.JobExplorerFactoryBean
- All Implemented Interfaces:
- FactoryBean, InitializingBean
public class JobExplorerFactoryBean
- extends AbstractJobExplorerFactoryBean
- implements InitializingBean
A FactoryBean
that automates the creation of a
SimpleJobExplorer
using JDBC DAO implementations. Requires the user
to describe what kind of database they are using.
- Since:
- 2.0
- Author:
- Dave Syer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobExplorerFactoryBean
public JobExplorerFactoryBean()
setDataSource
public void setDataSource(DataSource dataSource)
- Public setter for the
DataSource
.
- Parameters:
dataSource
- a DataSource
setTablePrefix
public void setTablePrefix(String tablePrefix)
- Sets the table prefix for all the batch meta-data tables.
- Parameters:
tablePrefix
-
setLobHandler
public void setLobHandler(LobHandler lobHandler)
- The lob handler to use when saving
ExecutionContext
instances.
Defaults to null which works for most databases.
- Parameters:
lobHandler
-
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao()
throws Exception
- Specified by:
createExecutionContextDao
in class AbstractJobExplorerFactoryBean
- Throws:
Exception
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao()
throws Exception
- Specified by:
createJobInstanceDao
in class AbstractJobExplorerFactoryBean
- Returns:
- fully configured
JobInstanceDao
implementation.
- Throws:
Exception
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao()
throws Exception
- Specified by:
createJobExecutionDao
in class AbstractJobExplorerFactoryBean
- Returns:
- fully configured
JobExecutionDao
implementation.
- Throws:
Exception
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao()
throws Exception
- Specified by:
createStepExecutionDao
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.