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

io.mstream.trader.datafeed.handlers.api.ApiModule Maven / Gradle / Ivy

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


import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import io.mstream.trader.commons.ratpack.guice.Bindings;
import io.mstream.trader.datafeed.handlers.api.dates.DatesHandlerModule;
import io.mstream.trader.datafeed.handlers.api.stocks.StocksHandlerModule;

public class ApiModule extends AbstractModule {

    @Override
    protected void configure() {

        install(new StocksHandlerModule());
        install(new DatesHandlerModule());

        bind(Bindings.CHAIN_ACTION_TYPE)
                .annotatedWith(Api.class)
                .to(ApiChain.class)
                .in(Scopes.SINGLETON);


    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy