use of org.killbill.billing.util.config.definition.PaymentConfig in project killbill by killbill.
the class PaymentModule method configure.
@Override
protected void configure() {
final ConfigurationObjectFactory factory = new ConfigurationObjectFactory(skifeConfigSource);
final PaymentConfig paymentConfig = factory.build(PaymentConfig.class);
bind(PaymentConfig.class).annotatedWith(Names.named(STATIC_CONFIG)).toInstance(paymentConfig);
bind(PaymentConfig.class).to(MultiTenantPaymentConfig.class).asEagerSingleton();
bind(new TypeLiteral<OSGIServiceRegistration<PaymentPluginApi>>() {
}).toProvider(DefaultPaymentProviderPluginRegistryProvider.class).asEagerSingleton();
bind(new TypeLiteral<OSGIServiceRegistration<PaymentControlPluginApi>>() {
}).toProvider(DefaultPaymentControlProviderPluginRegistryProvider.class).asEagerSingleton();
bind(PaymentPluginServiceRegistration.class).asEagerSingleton();
bind(PaymentApi.class).to(DefaultPaymentApi.class).asEagerSingleton();
bind(PaymentGatewayApi.class).to(DefaultPaymentGatewayApi.class).asEagerSingleton();
bind(AdminPaymentApi.class).to(DefaultAdminPaymentApi.class).asEagerSingleton();
bind(PaymentBusEventHandler.class).asEagerSingleton();
bind(PaymentTagHandler.class).asEagerSingleton();
bind(PaymentService.class).to(DefaultPaymentService.class).asEagerSingleton();
bind(PaymentExecutors.class).asEagerSingleton();
installPaymentProviderPlugins(paymentConfig);
installPaymentDao();
installProcessors(paymentConfig);
installStateMachines();
installAutomatonRunner();
installRetryEngines();
installJanitor();
}
Aggregations