Search in sources :

Example 1 with NotificationConfig

use of org.killbill.billing.util.config.definition.NotificationConfig in project killbill by killbill.

the class KillbillServerModule method configurePushNotification.

protected void configurePushNotification() {
    final ConfigurationObjectFactory factory = new ConfigurationObjectFactory(skifeConfigSource);
    final NotificationConfig notificationConfig = factory.build(NotificationConfig.class);
    bind(NotificationConfig.class).annotatedWith(Names.named(STATIC_CONFIG)).toInstance(notificationConfig);
    bind(NotificationConfig.class).to(MultiTenantNotificationConfig.class).asEagerSingleton();
    bind(PushNotificationListener.class).asEagerSingleton();
    bind(PushNotificationRetryService.class).asEagerSingleton();
    bind(ServerService.class).to(DefaultServerService.class).asEagerSingleton();
}
Also used : DefaultServerService(org.killbill.billing.server.DefaultServerService) PushNotificationListener(org.killbill.billing.server.notifications.PushNotificationListener) ConfigurationObjectFactory(org.skife.config.ConfigurationObjectFactory) NotificationConfig(org.killbill.billing.util.config.definition.NotificationConfig) MultiTenantNotificationConfig(org.killbill.billing.server.config.MultiTenantNotificationConfig) PushNotificationRetryService(org.killbill.billing.server.notifications.PushNotificationRetryService) MultiTenantNotificationConfig(org.killbill.billing.server.config.MultiTenantNotificationConfig)

Aggregations

DefaultServerService (org.killbill.billing.server.DefaultServerService)1 MultiTenantNotificationConfig (org.killbill.billing.server.config.MultiTenantNotificationConfig)1 PushNotificationListener (org.killbill.billing.server.notifications.PushNotificationListener)1 PushNotificationRetryService (org.killbill.billing.server.notifications.PushNotificationRetryService)1 NotificationConfig (org.killbill.billing.util.config.definition.NotificationConfig)1 ConfigurationObjectFactory (org.skife.config.ConfigurationObjectFactory)1