org.springframework.boot.autoconfigure.batch

Class BasicBatchConfigurer

  • java.lang.Object
    • org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer
  • All Implemented Interfaces:
    org.springframework.batch.core.configuration.annotation.BatchConfigurer
    Direct Known Subclasses:
    JpaBatchConfigurer


    public class BasicBatchConfigurer
    extends Object
    implements org.springframework.batch.core.configuration.annotation.BatchConfigurer
    Basic BatchConfigurer implementation.
    Author:
    Dave Syer, Andy Wilkinson, Kazuki Shimizu, Stephane Nicoll
    • Constructor Detail

      • 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 Detail

      • 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
      • 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