Example usage for org.springframework.scheduling.quartz SchedulerFactoryBean getConfigTimeTaskExecutor

List of usage examples for org.springframework.scheduling.quartz SchedulerFactoryBean getConfigTimeTaskExecutor

Introduction

In this page you can find the example usage for org.springframework.scheduling.quartz SchedulerFactoryBean getConfigTimeTaskExecutor.

Prototype

@Nullable
public static Executor getConfigTimeTaskExecutor() 

Source Link

Document

Return the Executor for the currently configured Quartz Scheduler, to be used by LocalTaskExecutorThreadPool .

Usage

From source file:com.gybas.evaluation.quartz.setup.LocalTaskExecutorThreadExecutor.java

@Override
public void initialize() {
    // Absolutely needs thread-bound TaskExecutor to initialize.
    this.taskExecutor = SchedulerFactoryBean.getConfigTimeTaskExecutor();
    if (this.taskExecutor == null) {
        throw new IllegalStateException("No local TaskExecutor found for configuration - "
                + "'taskExecutor' property must be set on SchedulerFactoryBean");
    }//from   w  w w .  ja  va2 s  .co m
}

From source file:org.springframework.scheduling.quartz.LocalTaskExecutorThreadPool.java

@Override
public void initialize() throws SchedulerConfigException {
    // Absolutely needs thread-bound Executor to initialize.
    this.taskExecutor = SchedulerFactoryBean.getConfigTimeTaskExecutor();
    if (this.taskExecutor == null) {
        throw new SchedulerConfigException("No local Executor found for configuration - "
                + "'taskExecutor' property must be set on SchedulerFactoryBean");
    }//from   ww w .  j a va 2  s .  co m
}