public class BasicBatchConfigurer
extends java.lang.Object
implements org.springframework.batch.core.configuration.annotation.BatchConfigurer, org.springframework.beans.factory.InitializingBean
BatchConfigurer implementation.| Modifier | Constructor and Description |
|---|---|
protected |
BasicBatchConfigurer(BatchProperties properties,
javax.sql.DataSource dataSource,
TransactionManagerCustomizers transactionManagerCustomizers)
Create a new
BasicBatchConfigurer instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected org.springframework.batch.core.explore.JobExplorer |
createJobExplorer() |
protected org.springframework.batch.core.launch.JobLauncher |
createJobLauncher() |
protected org.springframework.batch.core.repository.JobRepository |
createJobRepository() |
protected org.springframework.transaction.PlatformTransactionManager |
createTransactionManager() |
protected java.lang.String |
determineIsolationLevel()
Determine the isolation level for create* operation of the
JobRepository. |
org.springframework.batch.core.explore.JobExplorer |
getJobExplorer() |
org.springframework.batch.core.launch.JobLauncher |
getJobLauncher() |
org.springframework.batch.core.repository.JobRepository |
getJobRepository() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
void |
initialize() |
protected BasicBatchConfigurer(BatchProperties properties, javax.sql.DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)
BasicBatchConfigurer instance.properties - the batch propertiesdataSource - the underlying data sourcetransactionManagerCustomizers - transaction manager customizers (or
null)public org.springframework.batch.core.repository.JobRepository getJobRepository()
getJobRepository in interface org.springframework.batch.core.configuration.annotation.BatchConfigurerpublic org.springframework.transaction.PlatformTransactionManager getTransactionManager()
getTransactionManager in interface org.springframework.batch.core.configuration.annotation.BatchConfigurerpublic org.springframework.batch.core.launch.JobLauncher getJobLauncher()
getJobLauncher in interface org.springframework.batch.core.configuration.annotation.BatchConfigurerpublic org.springframework.batch.core.explore.JobExplorer getJobExplorer()
throws java.lang.Exception
getJobExplorer in interface org.springframework.batch.core.configuration.annotation.BatchConfigurerjava.lang.Exceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void initialize()
protected org.springframework.batch.core.explore.JobExplorer createJobExplorer()
throws java.lang.Exception
java.lang.Exceptionprotected org.springframework.batch.core.launch.JobLauncher createJobLauncher()
throws java.lang.Exception
java.lang.Exceptionprotected org.springframework.batch.core.repository.JobRepository createJobRepository()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String determineIsolationLevel()
JobRepository.null to use the defaultprotected org.springframework.transaction.PlatformTransactionManager createTransactionManager()