Search in sources :

Example 1 with CurrencyConfig

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();
}
Also used : DefaultCurrencyService(org.killbill.billing.currency.DefaultCurrencyService) OSGIServiceRegistration(org.killbill.billing.osgi.api.OSGIServiceRegistration) DefaultCurrencyConversionApi(org.killbill.billing.currency.api.DefaultCurrencyConversionApi) ConfigurationObjectFactory(org.skife.config.ConfigurationObjectFactory) CurrencyConfig(org.killbill.billing.util.config.definition.CurrencyConfig)

Aggregations

DefaultCurrencyService (org.killbill.billing.currency.DefaultCurrencyService)1 DefaultCurrencyConversionApi (org.killbill.billing.currency.api.DefaultCurrencyConversionApi)1 OSGIServiceRegistration (org.killbill.billing.osgi.api.OSGIServiceRegistration)1 CurrencyConfig (org.killbill.billing.util.config.definition.CurrencyConfig)1 ConfigurationObjectFactory (org.skife.config.ConfigurationObjectFactory)1