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

io.mstream.trader.datafeed.handlers.admin.cache.AdminCacheModule Maven / Gradle / Ivy

The newest version!
package io.mstream.trader.datafeed.handlers.admin.cache;


import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import io.mstream.trader.commons.ratpack.guice.Bindings;
import io.mstream.trader.datafeed.handlers.admin.cache.api.Cache;
import io.mstream.trader.datafeed.handlers.admin.cache.api.ClearCache;
import ratpack.handling.Handler;


public class AdminCacheModule
        extends AbstractModule {
    
    @Override
    protected void configure() {
        
        bind(Bindings.CHAIN_ACTION_TYPE)
                .annotatedWith(Cache.class)
                .to(AdminCacheChain.class)
                .in(Scopes.SINGLETON);
        
        bind(Handler.class)
                .annotatedWith(ClearCache.class)
                .to(ClearCacheHandler.class)
                .in(Scopes.SINGLETON);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy