类 BasicBatchConfigurer
- java.lang.Object
- org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
- 所有已实现的接口:
org.springframework.batch.core.configuration.annotation.BatchConfigurer
public class BasicBatchConfigurer extends Object implements org.springframework.batch.core.configuration.annotation.BatchConfigurer
BasicBatchConfigurerimplementation.
构造器概要
构造器 限定符 构造器 说明 protectedBasicBatchConfigurer(BatchProperties properties, DataSource dataSource, javax.persistence.EntityManagerFactory entityManagerFactory, TransactionManagerCustomizers transactionManagerCustomizers)Create a newBasicBatchConfigurerinstance.protectedBasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)Create a newBasicBatchConfigurerinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()org.springframework.batch.core.explore.JobExplorergetJobExplorer()org.springframework.batch.core.launch.JobLaunchergetJobLauncher()org.springframework.batch.core.repository.JobRepositorygetJobRepository()org.springframework.transaction.PlatformTransactionManagergetTransactionManager()voidinitialize()
构造器详细资料
BasicBatchConfigurer
protected BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)
Create a newBasicBatchConfigurerinstance.- 参数:
properties- the batch propertiesdataSource- the underlying data sourcetransactionManagerCustomizers- transaction manager customizers (ornull)
BasicBatchConfigurer
protected BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, javax.persistence.EntityManagerFactory entityManagerFactory, TransactionManagerCustomizers transactionManagerCustomizers)
Create a newBasicBatchConfigurerinstance.- 参数:
properties- the batch propertiesdataSource- the underlying data sourceentityManagerFactory- the entity manager factory (ornull)transactionManagerCustomizers- 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
createTransactionManager
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()