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

org.seedstack.scheduler.internal.ScheduledTasksImpl Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.scheduler.internal;

import org.quartz.Scheduler;
import org.seedstack.scheduler.ScheduledTaskBuilder;
import org.seedstack.scheduler.ScheduledTasks;
import org.seedstack.scheduler.Task;
import org.seedstack.seed.Application;

import javax.inject.Inject;

class ScheduledTasksImpl implements ScheduledTasks {
    @Inject
    private Scheduler scheduler;

    @Inject
    private Application application;

    @Override
    public ScheduledTaskBuilder scheduledTask(Class taskClass) {
        return new ScheduledTaskBuilderImpl(taskClass, scheduler, application);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy