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 Details

    • BasicBatchConfigurer

      protected BasicBatchConfigurer(BatchProperties properties, DataSource dataSource, TransactionManagerCustomizers transactionManagerCustomizers)
      Create a new BasicBatchConfigurer instance.
      Parameters:
      properties - the batch properties
      dataSource - the underlying data source
      transactionManagerCustomizers - transaction manager customizers (or null)
  • Method Details

    • getJobRepository

      public org.springframework.batch.core.repository.JobRepository getJobRepository()
      Specified by:
      getJobRepository in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
    • getTransactionManager

      public PlatformTransactionManager getTransactionManager()
      Specified by:
      getTransactionManager in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
    • getJobLauncher

      public org.springframework.batch.core.launch.JobLauncher getJobLauncher()
      Specified by:
      getJobLauncher in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
    • getJobExplorer

      public org.springframework.batch.core.explore.JobExplorer getJobExplorer() throws Exception
      Specified by:
      getJobExplorer in interface org.springframework.batch.core.configuration.annotation.BatchConfigurer
      Throws:
      Exception
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface InitializingBean
    • initialize

      public void initialize()
    • createJobExplorer

      protected org.springframework.batch.core.explore.JobExplorer createJobExplorer() throws Exception
      Throws:
      Exception
    • createJobLauncher

      protected org.springframework.batch.core.launch.JobLauncher createJobLauncher() throws Exception
      Throws:
      Exception
    • createJobRepository

      protected org.springframework.batch.core.repository.JobRepository createJobRepository() throws Exception
      Throws:
      Exception
    • determineIsolationLevel

      protected String determineIsolationLevel()
      Determine the isolation level for create* operation of the JobRepository.
      Returns:
      the isolation level or null to use the default
    • createTransactionManager

      protected PlatformTransactionManager createTransactionManager()