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

io.mangoo.core.Module Maven / Gradle / Ivy

package io.mangoo.core;

import org.quartz.spi.JobFactory;

import com.google.inject.AbstractModule;

import io.mangoo.cache.Cache;
import io.mangoo.providers.CacheProvider;
import io.mangoo.providers.TemplateEngineProvider;
import io.mangoo.scheduler.SchedulerFactory;
import io.mangoo.templating.TemplateEngine;

/**
 * 
 * @author svenkubiak
 *
 */
public class Module extends AbstractModule {
    @Override
    protected void configure() {
        bind(JobFactory.class).to(SchedulerFactory.class);
        bind(Cache.class).toProvider(CacheProvider.class);
        bind(TemplateEngine.class).toProvider(TemplateEngineProvider.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy