Class BasicBatchConfigurer
java.lang.Object
org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
- All Implemented Interfaces:
org.springframework.batch.core.configuration.annotation.BatchConfigurer,InitializingBean
- Direct Known Subclasses:
JpaBatchConfigurer
public class BasicBatchConfigurer
extends Object
implements org.springframework.batch.core.configuration.annotation.BatchConfigurer, InitializingBean
Basic
BatchConfigurer implementation.- Since:
- 1.0.0
- Author:
- Dave Syer, Andy Wilkinson, Kazuki Shimizu, Stephane Nicoll
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers) Create a newBasicBatchConfigurerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected org.springframework.batch.core.explore.JobExplorerprotected org.springframework.batch.core.launch.JobLauncherprotected org.springframework.batch.core.repository.JobRepositoryprotected PlatformTransactionManagerprotected StringDetermine the isolation level for create* operation of theJobRepository.org.springframework.batch.core.explore.JobExplorerorg.springframework.batch.core.launch.JobLauncherorg.springframework.batch.core.repository.JobRepositoryvoid
-
Constructor Details
-
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 Details
-
getJobRepository
public org.springframework.batch.core.repository.JobRepository getJobRepository()- Specified by:
getJobRepositoryin interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
-
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
- Specified by:
getJobExplorerin interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer- Throws:
Exception
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
initialize
public void initialize() -
createJobExplorer
- Throws:
Exception
-
createJobLauncher
- Throws:
Exception
-
createJobRepository
protected org.springframework.batch.core.repository.JobRepository createJobRepository() throws Exception- Throws:
Exception
-
determineIsolationLevel
Determine the isolation level for create* operation of theJobRepository.- Returns:
- the isolation level or
nullto use the default
-
createTransactionManager
-