All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.yandex.qatools.camelot.common.builders.SchedulerBuildersFactoryImpl Maven / Gradle / Ivy

There is a newer version: 2.5.4
Show newest version
package ru.yandex.qatools.camelot.common.builders;

import org.apache.camel.CamelContext;
import org.quartz.Scheduler;
import ru.yandex.qatools.camelot.config.Plugin;

/**
 * @author Ilya Sadykov (mailto: [email protected])
 */
public class SchedulerBuildersFactoryImpl implements SchedulerBuildersFactory {
    private final Scheduler quartzScheduler;
    private final CamelContext camelContext;

    public SchedulerBuildersFactoryImpl(Scheduler quartzScheduler, CamelContext camelContext) {
        this.quartzScheduler = quartzScheduler;
        this.camelContext = camelContext;
    }

    @Override
    public SchedulerBuilder build(Plugin plugin) {
        return new QuartzAggregatorSchedulerBuilder(camelContext, quartzScheduler, plugin);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy