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

io.mstream.trader.datafeed.handlers.api.dates.range.GetRangeModule Maven / Gradle / Ivy

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


import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import com.google.inject.assistedinject.FactoryModuleBuilder;
import io.mstream.trader.datafeed.handlers.api.dates.data.DateRange;
import io.mstream.trader.datafeed.handlers.api.dates.data.DatesRangeFactory;
import ratpack.handling.Handler;

public class GetRangeModule extends AbstractModule {

    @Override
    protected void configure() {

        install(new FactoryModuleBuilder()
                .implement(DateRange.class, DateRange.class)
                .build(DatesRangeFactory.class));

        bind(Handler.class)
                .annotatedWith(GetRange.class)
                .to(GetDateRangeHandler.class)
                .in(Scopes.SINGLETON);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy