org.springframework.batch.core.repository.support
Class JobRepositoryFactoryBean

java.lang.Object
  extended by org.springframework.batch.core.repository.support.JobRepositoryFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

public class JobRepositoryFactoryBean
extends Object
implements FactoryBean, InitializingBean

A FactoryBean that automates the creation of a SimpleJobRepository. Requires the user to describe what kind of database they are using.

Author:
Ben Hale, Lucas Ward

Constructor Summary
JobRepositoryFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setDatabaseType(String dbType)
           
 void setDataSource(DataSource dataSource)
           
 void setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)
           
 void setTablePrefix(String tablePrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobRepositoryFactoryBean

public JobRepositoryFactoryBean()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)

setDatabaseType

public void setDatabaseType(String dbType)

setTablePrefix

public void setTablePrefix(String tablePrefix)

setIncrementerFactory

public void setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getObject

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

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean


Copyright © 2008 SpringSource. All Rights Reserved.