@Component public class BasicBatchConfigurer extends Object
BatchConfigurer
implementation.Constructor and Description |
---|
BasicBatchConfigurer(DataSource dataSource)
Create a new
BasicBatchConfigurer instance. |
BasicBatchConfigurer(DataSource dataSource,
EntityManagerFactory entityManagerFactory)
Create a new
BasicBatchConfigurer instance. |
Modifier and Type | Method and Description |
---|---|
protected JobRepository |
createJobRepository() |
protected PlatformTransactionManager |
createTransactionManager() |
JobExplorer |
getJobExplorer() |
JobLauncher |
getJobLauncher() |
JobRepository |
getJobRepository() |
PlatformTransactionManager |
getTransactionManager() |
void |
initialize() |
public BasicBatchConfigurer(DataSource dataSource)
BasicBatchConfigurer
instance.dataSource
- the underlying data sourcepublic BasicBatchConfigurer(DataSource dataSource, EntityManagerFactory entityManagerFactory)
BasicBatchConfigurer
instance.dataSource
- the underlying data sourceentityManagerFactory
- the entity manager factory (or null
)public JobRepository getJobRepository()
public PlatformTransactionManager getTransactionManager()
public JobLauncher getJobLauncher()
@PostConstruct public void initialize()
protected JobRepository createJobRepository() throws Exception
Exception
protected PlatformTransactionManager createTransactionManager()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.