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, isSingletonpublic void setSerializer(ExecutionContextSerializer serializer)
ExecutionContextSerializer.
The default, if not injected, is the Jackson2ExecutionContextStringSerializer.serializer - used to serialize/deserialize an ExecutionContextExecutionContextSerializerpublic void setDataSource(javax.sql.DataSource dataSource)
DataSource.dataSource - a DataSourcepublic 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 JdbcOperationspublic 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 ExecutionContextpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
createExecutionContextDao in class AbstractJobExplorerFactoryBeanExecutionContextDao implementation.java.lang.Exception - thrown if error occurs during ExecutionContextDao creation.protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
createJobInstanceDao in class AbstractJobExplorerFactoryBeanJobInstanceDao implementation.java.lang.Exception - thrown if error occurs during JobInstanceDao creation.protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
createJobExecutionDao in class AbstractJobExplorerFactoryBeanJobExecutionDao implementation.java.lang.Exception - thrown if error occurs during JobExecutionDao creation.protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
createStepExecutionDao in class AbstractJobExplorerFactoryBeanStepExecutionDao 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