@Component public class BasicBatchConfigurer extends Object implements org.springframework.batch.core.configuration.annotation.BatchConfigurer
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 org.springframework.batch.core.repository.JobRepository |
createJobRepository() |
protected PlatformTransactionManager |
createTransactionManager() |
org.springframework.batch.core.explore.JobExplorer |
getJobExplorer() |
org.springframework.batch.core.launch.JobLauncher |
getJobLauncher() |
org.springframework.batch.core.repository.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 org.springframework.batch.core.repository.JobRepository getJobRepository()
getJobRepository
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
public PlatformTransactionManager getTransactionManager()
getTransactionManager
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
public org.springframework.batch.core.launch.JobLauncher getJobLauncher()
getJobLauncher
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
public org.springframework.batch.core.explore.JobExplorer getJobExplorer() throws Exception
getJobExplorer
in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
Exception
@PostConstruct public void initialize()
protected org.springframework.batch.core.repository.JobRepository createJobRepository() throws Exception
Exception
protected PlatformTransactionManager createTransactionManager()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.