类 BasicBatchConfigurer
- java.lang.Object
- org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
- 所有已实现的接口:
org.springframework.batch.core.configuration.annotation.BatchConfigurer
- 直接已知子类:
JpaBatchConfigurer
public class BasicBatchConfigurer extends Object implements org.springframework.batch.core.configuration.annotation.BatchConfigurer
BasicBatchConfigurer
implementation.
构造器概要
构造器 限定符 构造器 说明 protected
BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)
Create a newBasicBatchConfigurer
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 String
determineIsolationLevel()
Determine the isolation level for create* operation of theJobRepository
.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()
构造器详细资料
BasicBatchConfigurer
protected BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)
Create a newBasicBatchConfigurer
instance.- 参数:
properties
- the batch propertiesdataSource
- the underlying data sourcetransactionManagerCustomizers
- transaction manager customizers (ornull
)
方法详细资料
getJobRepository
public org.springframework.batch.core.repository.JobRepository getJobRepository()
- 指定者:
getJobRepository
在接口中org.springframework.batch.core.configuration.annotation.BatchConfigurer
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
- 指定者:
getTransactionManager
在接口中org.springframework.batch.core.configuration.annotation.BatchConfigurer
getJobLauncher
public org.springframework.batch.core.launch.JobLauncher getJobLauncher()
- 指定者:
getJobLauncher
在接口中org.springframework.batch.core.configuration.annotation.BatchConfigurer
getJobExplorer
public org.springframework.batch.core.explore.JobExplorer getJobExplorer() throws Exception
- 指定者:
getJobExplorer
在接口中org.springframework.batch.core.configuration.annotation.BatchConfigurer
- 抛出:
Exception
initialize
@PostConstruct public void initialize()
createJobExplorer
protected org.springframework.batch.core.explore.JobExplorer createJobExplorer() throws Exception
- 抛出:
Exception
createJobLauncher
protected org.springframework.batch.core.launch.JobLauncher createJobLauncher() throws Exception
- 抛出:
Exception
createJobRepository
protected org.springframework.batch.core.repository.JobRepository createJobRepository() throws Exception
- 抛出:
Exception
determineIsolationLevel
protected String determineIsolationLevel()
Determine the isolation level for create* operation of theJobRepository
.- 返回:
- the isolation level or
null
to use the default
createTransactionManager
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()