org.springframework.batch.core.explore.support
Class JobExplorerFactoryBean

java.lang.Object
  extended by org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
      extended by org.springframework.batch.core.explore.support.JobExplorerFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

public class JobExplorerFactoryBean
extends AbstractJobExplorerFactoryBean
implements 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

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(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.
 
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

JobExplorerFactoryBean

public JobExplorerFactoryBean()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)
Public setter for the DataSource.

Parameters:
dataSource - a DataSource

setTablePrefix

public void setTablePrefix(String tablePrefix)
Sets the table prefix for all the batch meta-data tables.

Parameters:
tablePrefix -

setLobHandler

public void setLobHandler(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 Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

createExecutionContextDao

protected ExecutionContextDao createExecutionContextDao()
                                                 throws Exception
Specified by:
createExecutionContextDao in class AbstractJobExplorerFactoryBean
Throws:
Exception

createJobInstanceDao

protected JobInstanceDao createJobInstanceDao()
                                       throws Exception
Specified by:
createJobInstanceDao in class AbstractJobExplorerFactoryBean
Returns:
fully configured JobInstanceDao implementation.
Throws:
Exception

createJobExecutionDao

protected JobExecutionDao createJobExecutionDao()
                                         throws Exception
Specified by:
createJobExecutionDao in class AbstractJobExplorerFactoryBean
Returns:
fully configured JobExecutionDao implementation.
Throws:
Exception

createStepExecutionDao

protected StepExecutionDao createStepExecutionDao()
                                           throws Exception
Specified by:
createStepExecutionDao in class AbstractJobExplorerFactoryBean
Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception


Copyright © 2009 SpringSource. All Rights Reserved.