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:
- org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class JobExplorerFactoryBean
- extends AbstractJobExplorerFactoryBean
- implements org.springframework.beans.factory.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(javax.sql.DataSource dataSource)
- Public setter for the
DataSource.
- Parameters:
dataSource - a DataSource
setTablePrefix
public void setTablePrefix(java.lang.String tablePrefix)
- Sets the table prefix for all the batch meta-data tables.
- Parameters:
tablePrefix -
setLobHandler
public void setLobHandler(org.springframework.jdbc.support.lob.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 java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao()
throws java.lang.Exception
- Specified by:
createExecutionContextDao in class AbstractJobExplorerFactoryBean
- Throws:
java.lang.Exception
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao()
throws java.lang.Exception
- Specified by:
createJobInstanceDao in class AbstractJobExplorerFactoryBean
- Returns:
- fully configured
JobInstanceDao implementation.
- Throws:
java.lang.Exception
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao()
throws java.lang.Exception
- Specified by:
createJobExecutionDao in class AbstractJobExplorerFactoryBean
- Returns:
- fully configured
JobExecutionDao implementation.
- Throws:
java.lang.Exception
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao()
throws java.lang.Exception
- Specified by:
createStepExecutionDao in class AbstractJobExplorerFactoryBean
- Throws:
java.lang.Exception
getObject
public java.lang.Object getObject()
throws java.lang.Exception
- Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.