类 DefaultBatchConfigurer
- java.lang.Object
- org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer
- 所有已实现的接口:
BatchConfigurer
@Component public class DefaultBatchConfigurer extends java.lang.Object implements BatchConfigurer
构造器概要
构造器 限定符 构造器 说明 protected
DefaultBatchConfigurer()
DefaultBatchConfigurer(javax.sql.DataSource dataSource)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected JobExplorer
createJobExplorer()
protected JobLauncher
createJobLauncher()
protected JobRepository
createJobRepository()
JobExplorer
getJobExplorer()
JobLauncher
getJobLauncher()
JobRepository
getJobRepository()
org.springframework.transaction.PlatformTransactionManager
getTransactionManager()
void
initialize()
void
setDataSource(javax.sql.DataSource dataSource)
Sets the dataSource.
构造器详细资料
DefaultBatchConfigurer
protected DefaultBatchConfigurer()
DefaultBatchConfigurer
public DefaultBatchConfigurer(javax.sql.DataSource dataSource)
方法详细资料
setDataSource
@Autowired(required=false) public void setDataSource(javax.sql.DataSource dataSource)
Sets the dataSource. If theDataSource
has been set once, all future values are passed are ignored (to prevent @Autowired from overwriting the value).- 参数:
dataSource
-
getJobRepository
public JobRepository getJobRepository()
- 指定者:
getJobRepository
在接口中BatchConfigurer
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
- 指定者:
getTransactionManager
在接口中BatchConfigurer
getJobLauncher
public JobLauncher getJobLauncher()
- 指定者:
getJobLauncher
在接口中BatchConfigurer
getJobExplorer
public JobExplorer getJobExplorer()
- 指定者:
getJobExplorer
在接口中BatchConfigurer
initialize
@PostConstruct public void initialize()
createJobLauncher
protected JobLauncher createJobLauncher() throws java.lang.Exception
- 抛出:
java.lang.Exception
createJobRepository
protected JobRepository createJobRepository() throws java.lang.Exception
- 抛出:
java.lang.Exception
createJobExplorer
protected JobExplorer createJobExplorer() throws java.lang.Exception
- 抛出:
java.lang.Exception