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

com.shinitech.djammadev.jobs.JobModule Maven / Gradle / Ivy

package com.shinitech.djammadev.jobs;

import akka.actor.ActorSystem;
import org.glassfish.hk2.utilities.binding.AbstractBinder;

import javax.inject.Singleton;

/**
 * Created by sissoko on 02/11/2017.
 */
public class JobModule extends AbstractBinder implements DjammaActorBinder {

    @Override
    protected void configure() {
        bind(ActorSystem.apply()).to(ActorSystem.class);
        bind(TaskScheduler.class).to(JobScheduler.class).in(Singleton.class);
        bindActor(TaskReceiver.class, "task-receiver");
        bind(JobLoaderImpl.class).to(JobLoader.class).in(Singleton.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy