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
ModifierConstructorDescriptionprotected
BasicBatchConfigurer
(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers) Create a newBasicBatchConfigurer
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected org.springframework.batch.core.explore.JobExplorer
protected org.springframework.batch.core.launch.JobLauncher
protected org.springframework.batch.core.repository.JobRepository
protected PlatformTransactionManager
protected String
Determine the isolation level for create* operation of theJobRepository
.org.springframework.batch.core.explore.JobExplorer
org.springframework.batch.core.launch.JobLauncher
org.springframework.batch.core.repository.JobRepository
void
-
Constructor Details
-
BasicBatchConfigurer
protected BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers) Create a newBasicBatchConfigurer
instance.- 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:
getJobRepository
in interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
-
getTransactionManager
- Specified by:
getTransactionManager
in interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
-
getJobLauncher
public org.springframework.batch.core.launch.JobLauncher getJobLauncher()- Specified by:
getJobLauncher
in interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
-
getJobExplorer
- Specified by:
getJobExplorer
in interfaceorg.springframework.batch.core.configuration.annotation.BatchConfigurer
- Throws:
Exception
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in 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
null
to use the default
-
createTransactionManager
-