org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor Java Examples
The following examples show how to use
org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PipelineController.java From kayenta with Apache License 2.0 | 6 votes |
@Autowired public PipelineController( ExecutionLauncher executionLauncher, ExecutionRepository executionRepository, ObjectMapper kayentaObjectMapper, ConfigurableApplicationContext context, HealthIndicatorRegistry healthIndicators, HealthAggregator healthAggregator, ScheduledAnnotationBeanPostProcessor postProcessor) { this.executionLauncher = executionLauncher; this.executionRepository = executionRepository; this.kayentaObjectMapper = kayentaObjectMapper; this.context = context; this.healthIndicator = new CompositeHealthIndicator(healthAggregator, healthIndicators); this.postProcessor = postProcessor; }
Example #2
Source File: ConfigClientRefreshAutoConfigurationTest.java From spring-cloud-config-refresh with Apache License 2.0 | 5 votes |
@Test public void shouldRegisterSchedulerPostProcessor() { // when ScheduledAnnotationBeanPostProcessor bean = applicationContext.getBean(ScheduledAnnotationBeanPostProcessor.class); // then assertNotNull(bean); }
Example #3
Source File: SpringBatchSchedulerIntegrationTest.java From tutorials with MIT License | 5 votes |
@Test public void stopJobSchedulerWhenSchedulerDestroyed() throws Exception { ScheduledAnnotationBeanPostProcessor bean = context.getBean(ScheduledAnnotationBeanPostProcessor.class); SpringBatchScheduler schedulerBean = context.getBean(SpringBatchScheduler.class); await().untilAsserted(() -> Assert.assertEquals(2, schedulerBean.getBatchRunCounter() .get())); bean.postProcessBeforeDestruction(schedulerBean, "SpringBatchScheduler"); await().atLeast(3, SECONDS); Assert.assertEquals(2, schedulerBean.getBatchRunCounter() .get()); }
Example #4
Source File: FileWatcherITest.java From jfilter with Apache License 2.0 | 4 votes |
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection") @Autowired public void setTaskScheduler(ScheduledAnnotationBeanPostProcessor taskScheduler) { this.taskScheduler = taskScheduler; }