use of org.killbill.billing.util.config.definition.CurrencyConfig in project killbill by killbill.
the class CurrencyModule method configure.
@Override
protected void configure() {
final ConfigurationObjectFactory factory = new ConfigurationObjectFactory(skifeConfigSource);
final CurrencyConfig currencyConfig = factory.build(CurrencyConfig.class);
bind(CurrencyConfig.class).toInstance(currencyConfig);
bind(new TypeLiteral<OSGIServiceRegistration<CurrencyPluginApi>>() {
}).toProvider(DefaultCurrencyProviderPluginRegistryProvider.class).asEagerSingleton();
bind(CurrencyConversionApi.class).to(DefaultCurrencyConversionApi.class).asEagerSingleton();
bind(CurrencyService.class).to(DefaultCurrencyService.class).asEagerSingleton();
}
Aggregations