Class DefaultBatchEnvironment
- java.lang.Object
-
- org.wildfly.extension.batch.jberet.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 anBatchRuntimeExceptionfor each method. Deployments should not end up with this environment. This is used as a fallback in cases where theJobOperatorContextSelectorcannot find an appropriate environment.- Author:
- James R. Perkins
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultBatchEnvironmentINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetApplicationName()org.jberet.spi.ArtifactFactorygetArtifactFactory()PropertiesgetBatchConfigurationProperties()ClassLoadergetClassLoader()org.jberet.repository.JobRepositorygetJobRepository()org.jberet.spi.JobXmlResolvergetJobXmlResolver()jakarta.transaction.TransactionManagergetTransactionManager()voidsubmitTask(org.jberet.spi.JobTask jobTask)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultBatchEnvironment INSTANCE
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoaderin interfaceorg.jberet.spi.BatchEnvironment
-
getArtifactFactory
public org.jberet.spi.ArtifactFactory getArtifactFactory()
- Specified by:
getArtifactFactoryin interfaceorg.jberet.spi.BatchEnvironment
-
submitTask
public void submitTask(org.jberet.spi.JobTask jobTask)
- Specified by:
submitTaskin interfaceorg.jberet.spi.BatchEnvironment
-
getTransactionManager
public jakarta.transaction.TransactionManager getTransactionManager()
- Specified by:
getTransactionManagerin interfaceorg.jberet.spi.BatchEnvironment
-
getJobRepository
public org.jberet.repository.JobRepository getJobRepository()
- Specified by:
getJobRepositoryin interfaceorg.jberet.spi.BatchEnvironment
-
getJobXmlResolver
public org.jberet.spi.JobXmlResolver getJobXmlResolver()
- Specified by:
getJobXmlResolverin interfaceorg.jberet.spi.BatchEnvironment
-
getBatchConfigurationProperties
public Properties getBatchConfigurationProperties()
- Specified by:
getBatchConfigurationPropertiesin interfaceorg.jberet.spi.BatchEnvironment
-
getApplicationName
public String getApplicationName()
- Specified by:
getApplicationNamein interfaceorg.jberet.spi.BatchEnvironment
-
-