Class BasicBatchConfigurer
- java.lang.Object
- org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
- All Implemented Interfaces:
org.springframework.batch.core.configuration.annotation.BatchConfigurer
- Direct Known Subclasses:
JpaBatchConfigurer
public class BasicBatchConfigurer extends Object implements org.springframework.batch.core.configuration.annotation.BatchConfigurer
BasicBatchConfigurerimplementation.
Constructor Summary
Constructors Modifier Constructor Description protectedBasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)Create a newBasicBatchConfigurerinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.batch.core.explore.JobExplorercreateJobExplorer()protected org.springframework.batch.core.launch.JobLaunchercreateJobLauncher()protected org.springframework.batch.core.repository.JobRepositorycreateJobRepository()protected org.springframework.transaction.PlatformTransactionManagercreateTransactionManager()protected StringdetermineIsolationLevel()Determine the isolation level for create* operation of theJobRepository.org.springframework.batch.core.explore.JobExplorergetJobExplorer()org.springframework.batch.core.launch.JobLaunchergetJobLauncher()org.springframework.batch.core.repository.JobRepositorygetJobRepository()org.springframework.transaction.PlatformTransactionManagergetTransactionManager()voidinitialize()
Constructor Detail
BasicBatchConfigurer
protected BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)
Create a newBasicBatchConfigurerinstance.- Parameters:
properties- the batch propertiesdataSource- the underlying data sourcetransactionManagerCustomizers- transaction manager customizers (ornull)
Method Detail
getJobRepository
public org.springframework.batch.core.repository.JobRepository getJobRepository()
- Specified by:
getJobRepositoryin interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
- Specified by:
getTransactionManagerin interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
getJobLauncher
public org.springframework.batch.core.launch.JobLauncher getJobLauncher()
- Specified by:
getJobLauncherin interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
getJobExplorer
public org.springframework.batch.core.explore.JobExplorer getJobExplorer() throws Exception
- Specified by:
getJobExplorerin interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer- Throws:
Exception
initialize
@PostConstruct public void initialize()
createJobExplorer
protected org.springframework.batch.core.explore.JobExplorer createJobExplorer() throws Exception
- Throws:
Exception
createJobLauncher
protected org.springframework.batch.core.launch.JobLauncher createJobLauncher() throws Exception
- Throws:
Exception
createJobRepository
protected org.springframework.batch.core.repository.JobRepository createJobRepository() throws Exception
- Throws:
Exception
determineIsolationLevel
protected String determineIsolationLevel()
Determine the isolation level for create* operation of theJobRepository.- Returns:
- the isolation level or
nullto use the default
createTransactionManager
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()