public class JobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements org.springframework.beans.factory.InitializingBean
FactoryBean
that automates the creation of a
SimpleJobExplorer
using JDBC DAO implementations. Requires the user
to describe what kind of database they are using.Constructor and Description |
---|
JobExplorerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected ExecutionContextDao |
createExecutionContextDao() |
protected JobExecutionDao |
createJobExecutionDao() |
protected JobInstanceDao |
createJobInstanceDao() |
protected StepExecutionDao |
createStepExecutionDao() |
Object |
getObject() |
void |
setDataSource(DataSource dataSource)
Public setter for the
DataSource . |
void |
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
The lob handler to use when saving
ExecutionContext instances. |
void |
setTablePrefix(String tablePrefix)
Sets the table prefix for all the batch meta-data tables.
|
getObjectType, isSingleton
public void setDataSource(DataSource dataSource)
DataSource
.dataSource
- a DataSource
public void setTablePrefix(String tablePrefix)
tablePrefix
- public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
ExecutionContext
instances.
Defaults to null which works for most databases.lobHandler
- public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected ExecutionContextDao createExecutionContextDao() throws Exception
createExecutionContextDao
in class AbstractJobExplorerFactoryBean
Exception
protected JobInstanceDao createJobInstanceDao() throws Exception
createJobInstanceDao
in class AbstractJobExplorerFactoryBean
JobInstanceDao
implementation.Exception
protected JobExecutionDao createJobExecutionDao() throws Exception
createJobExecutionDao
in class AbstractJobExplorerFactoryBean
JobExecutionDao
implementation.Exception
protected StepExecutionDao createStepExecutionDao() throws Exception
createStepExecutionDao
in class AbstractJobExplorerFactoryBean
Exception
Copyright © 2013 SpringSource. All rights reserved.