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() |
JobExplorer |
getObject() |
void |
setDataSource(javax.sql.DataSource dataSource)
Public setter for the
DataSource . |
void |
setJdbcOperations(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
Public setter for the
JdbcOperations . |
void |
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
The lob handler to use when saving
ExecutionContext instances. |
void |
setSerializer(ExecutionContextSerializer serializer)
A custom implementation of the
ExecutionContextSerializer . |
void |
setTablePrefix(java.lang.String tablePrefix)
Sets the table prefix for all the batch meta-data tables.
|
getObjectType, isSingleton
public void setSerializer(ExecutionContextSerializer serializer)
ExecutionContextSerializer
.
The default, if not injected, is the XStreamExecutionContextStringSerializer
.serializer
- used to serialize/deserialize an ExecutionContext
ExecutionContextSerializer
public void setDataSource(javax.sql.DataSource dataSource)
DataSource
.dataSource
- a DataSource
public void setJdbcOperations(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
JdbcOperations
. If this property is not set explicitly,
a new JdbcTemplate
will be created for the configured DataSource by default.jdbcOperations
- a JdbcOperations
public void setTablePrefix(java.lang.String tablePrefix)
tablePrefix
- prefix for the batch meta-data tablespublic void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
ExecutionContext
instances.
Defaults to null which works for most databases.lobHandler
- Large object handler for saving ExecutionContext
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
protected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
createExecutionContextDao
in class AbstractJobExplorerFactoryBean
ExecutionContextDao
implementation.java.lang.Exception
- thrown if error occurs during ExecutionContextDao creation.protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
createJobInstanceDao
in class AbstractJobExplorerFactoryBean
JobInstanceDao
implementation.java.lang.Exception
- thrown if error occurs during JobInstanceDao creation.protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
createJobExecutionDao
in class AbstractJobExplorerFactoryBean
JobExecutionDao
implementation.java.lang.Exception
- thrown if error occurs during JobExecutionDao creation.protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
createStepExecutionDao
in class AbstractJobExplorerFactoryBean
StepExecutionDao
implementation.java.lang.Exception
- thrown if error occurs during StepExecutionDao creation.public JobExplorer getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<JobExplorer>
java.lang.Exception