Class DefaultBatchEnvironment

  • All Implemented Interfaces:
    org.jberet.spi.BatchEnvironment

    public class DefaultBatchEnvironment
    extends Object
    implements org.jberet.spi.BatchEnvironment
    An environment to act as a default batch environment for deployments. This environment throws an BatchRuntimeException for each method. Deployments should not end up with this environment. This is used as a fallback in cases where the JobOperatorContextSelector cannot find an appropriate environment.
    Author:
    James R. Perkins
    • Method Detail

      • getClassLoader

        public ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface org.jberet.spi.BatchEnvironment
      • getArtifactFactory

        public org.jberet.spi.ArtifactFactory getArtifactFactory()
        Specified by:
        getArtifactFactory in interface org.jberet.spi.BatchEnvironment
      • submitTask

        public void submitTask​(org.jberet.spi.JobTask jobTask)
        Specified by:
        submitTask in interface org.jberet.spi.BatchEnvironment
      • getTransactionManager

        public jakarta.transaction.TransactionManager getTransactionManager()
        Specified by:
        getTransactionManager in interface org.jberet.spi.BatchEnvironment
      • getJobRepository

        public org.jberet.repository.JobRepository getJobRepository()
        Specified by:
        getJobRepository in interface org.jberet.spi.BatchEnvironment
      • getJobXmlResolver

        public org.jberet.spi.JobXmlResolver getJobXmlResolver()
        Specified by:
        getJobXmlResolver in interface org.jberet.spi.BatchEnvironment
      • getBatchConfigurationProperties

        public Properties getBatchConfigurationProperties()
        Specified by:
        getBatchConfigurationProperties in interface org.jberet.spi.BatchEnvironment
      • getApplicationName

        public String getApplicationName()
        Specified by:
        getApplicationName in interface org.jberet.spi.BatchEnvironment