Package org.jobrunr.spring.autoconfigure
Class JobRunrAutoConfiguration
java.lang.Object
org.jobrunr.spring.autoconfigure.JobRunrAutoConfiguration
@Configuration
@EnableConfigurationProperties(JobRunrProperties.class)
@ComponentScan(basePackages="org.jobrunr.scheduling")
public class JobRunrAutoConfiguration
extends Object
A Spring Boot AutoConfiguration class for JobRunr
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jobrunr.server.BackgroundJobServer
backgroundJobServer
(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.server.JobActivator jobActivator, org.jobrunr.server.BackgroundJobServerConfiguration backgroundJobServerConfiguration, JobRunrProperties properties) org.jobrunr.server.BackgroundJobServerConfiguration
backgroundJobServerConfiguration
(JobRunrProperties properties) org.jobrunr.dashboard.JobRunrDashboardWebServer
dashboardWebServer
(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration dashboardWebServerConfiguration) org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration
dashboardWebServerConfiguration
(JobRunrProperties properties) org.jobrunr.server.JobActivator
jobActivator
(org.springframework.context.ApplicationContext applicationContext) org.jobrunr.jobs.mappers.JobMapper
jobMapper
(org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper) org.jobrunr.scheduling.JobRequestScheduler
jobRequestScheduler
(org.jobrunr.storage.StorageProvider storageProvider) org.jobrunr.scheduling.JobScheduler
jobScheduler
(org.jobrunr.storage.StorageProvider storageProvider, JobRunrProperties properties) static RecurringJobPostProcessor
-
Constructor Details
-
JobRunrAutoConfiguration
public JobRunrAutoConfiguration()
-
-
Method Details
-
jobScheduler
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="org.jobrunr.job-scheduler", name="enabled", havingValue="true", matchIfMissing=true) public org.jobrunr.scheduling.JobScheduler jobScheduler(org.jobrunr.storage.StorageProvider storageProvider, JobRunrProperties properties) -
jobRequestScheduler
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="org.jobrunr.job-scheduler", name="enabled", havingValue="true", matchIfMissing=true) public org.jobrunr.scheduling.JobRequestScheduler jobRequestScheduler(org.jobrunr.storage.StorageProvider storageProvider) -
backgroundJobServer
@Bean(destroyMethod="stop") @ConditionalOnMissingBean @ConditionalOnProperty(prefix="org.jobrunr.background-job-server", name="enabled", havingValue="true") public org.jobrunr.server.BackgroundJobServer backgroundJobServer(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.server.JobActivator jobActivator, org.jobrunr.server.BackgroundJobServerConfiguration backgroundJobServerConfiguration, JobRunrProperties properties) -
backgroundJobServerConfiguration
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="org.jobrunr.background-job-server", name="enabled", havingValue="true") public org.jobrunr.server.BackgroundJobServerConfiguration backgroundJobServerConfiguration(JobRunrProperties properties) -
dashboardWebServer
@Bean(destroyMethod="stop") @ConditionalOnMissingBean @ConditionalOnProperty(prefix="org.jobrunr.dashboard", name="enabled", havingValue="true") public org.jobrunr.dashboard.JobRunrDashboardWebServer dashboardWebServer(org.jobrunr.storage.StorageProvider storageProvider, org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper, org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration dashboardWebServerConfiguration) -
dashboardWebServerConfiguration
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="org.jobrunr.dashboard", name="enabled", havingValue="true") public org.jobrunr.dashboard.JobRunrDashboardWebServerConfiguration dashboardWebServerConfiguration(JobRunrProperties properties) -
jobActivator
@Bean @ConditionalOnMissingBean public org.jobrunr.server.JobActivator jobActivator(org.springframework.context.ApplicationContext applicationContext) -
jobMapper
@Bean @ConditionalOnMissingBean public org.jobrunr.jobs.mappers.JobMapper jobMapper(org.jobrunr.utils.mapper.JsonMapper jobRunrJsonMapper) -
recurringJobPostProcessor
@Bean @ConditionalOnBean(org.jobrunr.scheduling.JobScheduler.class) public static RecurringJobPostProcessor recurringJobPostProcessor()
-