|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
org.springframework.batch.core.explore.support.JobExplorerFactoryBean
public class JobExplorerFactoryBean
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.
| Constructor Summary | |
|---|---|
JobExplorerFactoryBean()
|
|
| Method Summary | |
|---|---|
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 |
setSerializer(ExecutionContextSerializer serializer)
A custom implementation of the ExecutionContextSerializer. |
void |
setTablePrefix(String tablePrefix)
Sets the table prefix for all the batch meta-data tables. |
| Methods inherited from class org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean |
|---|
getObjectType, isSingleton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobExplorerFactoryBean()
| Method Detail |
|---|
public void setSerializer(ExecutionContextSerializer serializer)
ExecutionContextSerializer.
The default, if not injected, is the XStreamExecutionContextStringSerializer.
serializer - ExecutionContextSerializerpublic void setDataSource(DataSource dataSource)
DataSource.
dataSource - a DataSourcepublic 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.InitializingBeanException
protected ExecutionContextDao createExecutionContextDao()
throws Exception
createExecutionContextDao in class AbstractJobExplorerFactoryBeanException
protected JobInstanceDao createJobInstanceDao()
throws Exception
createJobInstanceDao in class AbstractJobExplorerFactoryBeanJobInstanceDao implementation.
Exception
protected JobExecutionDao createJobExecutionDao()
throws Exception
createJobExecutionDao in class AbstractJobExplorerFactoryBeanJobExecutionDao implementation.
Exception
protected StepExecutionDao createStepExecutionDao()
throws Exception
createStepExecutionDao in class AbstractJobExplorerFactoryBeanException
public Object getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||