@Configuration @ConditionalOnMissingBean(value=AutomaticJobRegistrarConfigurationSupport.class) public class AutomaticJobRegistrarConfiguration extends AutomaticJobRegistrarConfigurationSupport
ApplicationContextFactory with the AutomaticJobRegistrar that is
instantiated inside the ModularBatchConfiguration.
This configuration looks for jobs in a modular fashion, meaning that every job configuration file gets its own
Child-ApplicationContext. Configuration files can be XML files in the location /META-INF/spring/batch/jobs,
overridable via property batch.config.path.xml, and JavaConfig classes in the package spring.batch.jobs, overridable
via property batch.config.package.javaconfig.
Customization is done by adding a Configuration class that extends AutomaticJobRegistrarConfigurationSupport.
This will disable this auto configuration.| Constructor and Description |
|---|
AutomaticJobRegistrarConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addApplicationContextFactories(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar automaticJobRegistrar)
Add ApplicationContextFactories to the given job registrar.
|
protected void |
registerJobsFromJavaConfig(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar automaticJobRegistrar) |
protected void |
registerJobsFromXml(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar automaticJobRegistrar) |
initializeprotected void addApplicationContextFactories(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar automaticJobRegistrar)
throws Exception
AutomaticJobRegistrarConfigurationSupportaddApplicationContextFactories in class AutomaticJobRegistrarConfigurationSupportautomaticJobRegistrar - BeanException - Some error.AutomaticJobRegistrarConfigurationSupport.addApplicationContextFactories(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar)protected void registerJobsFromXml(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar automaticJobRegistrar)
throws IOException
IOExceptionprotected void registerJobsFromJavaConfig(org.springframework.batch.core.configuration.support.AutomaticJobRegistrar automaticJobRegistrar)
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionCopyright © 2018 codecentric AG. All rights reserved.