Search in sources :

Example 1 with OverdueProperties

use of org.killbill.billing.overdue.OverdueProperties in project killbill by killbill.

the class DefaultOverdueModule method configure.

@Override
protected void configure() {
    installOverdueUserApi();
    installOverdueConfigCache();
    // internal bindings
    installOverdueService();
    installOverdueWrapperFactory();
    installOverdueEmail();
    final OverdueProperties config = new ConfigurationObjectFactory(skifeConfigSource).build(OverdueProperties.class);
    bind(OverdueProperties.class).toInstance(config);
    bind(OverdueListener.class).asEagerSingleton();
    bind(OverdueNotifier.class).annotatedWith(Names.named(OVERDUE_NOTIFIER_CHECK_NAMED)).to(OverdueCheckNotifier.class).asEagerSingleton();
    bind(OverdueNotifier.class).annotatedWith(Names.named(OVERDUE_NOTIFIER_ASYNC_BUS_NAMED)).to(OverdueAsyncBusNotifier.class).asEagerSingleton();
    bind(OverduePoster.class).annotatedWith(Names.named(OVERDUE_NOTIFIER_CHECK_NAMED)).to(OverdueCheckPoster.class).asEagerSingleton();
    bind(OverduePoster.class).annotatedWith(Names.named(OVERDUE_NOTIFIER_ASYNC_BUS_NAMED)).to(OverdueAsyncBusPoster.class).asEagerSingleton();
}
Also used : OverdueAsyncBusPoster(org.killbill.billing.overdue.notification.OverdueAsyncBusPoster) OverdueCheckNotifier(org.killbill.billing.overdue.notification.OverdueCheckNotifier) OverdueProperties(org.killbill.billing.overdue.OverdueProperties) OverdueCheckPoster(org.killbill.billing.overdue.notification.OverdueCheckPoster) ConfigurationObjectFactory(org.skife.config.ConfigurationObjectFactory) OverdueNotifier(org.killbill.billing.overdue.notification.OverdueNotifier) OverdueAsyncBusNotifier(org.killbill.billing.overdue.notification.OverdueAsyncBusNotifier) OverduePoster(org.killbill.billing.overdue.notification.OverduePoster) OverdueListener(org.killbill.billing.overdue.listener.OverdueListener)

Aggregations

OverdueProperties (org.killbill.billing.overdue.OverdueProperties)1 OverdueListener (org.killbill.billing.overdue.listener.OverdueListener)1 OverdueAsyncBusNotifier (org.killbill.billing.overdue.notification.OverdueAsyncBusNotifier)1 OverdueAsyncBusPoster (org.killbill.billing.overdue.notification.OverdueAsyncBusPoster)1 OverdueCheckNotifier (org.killbill.billing.overdue.notification.OverdueCheckNotifier)1 OverdueCheckPoster (org.killbill.billing.overdue.notification.OverdueCheckPoster)1 OverdueNotifier (org.killbill.billing.overdue.notification.OverdueNotifier)1 OverduePoster (org.killbill.billing.overdue.notification.OverduePoster)1 ConfigurationObjectFactory (org.skife.config.ConfigurationObjectFactory)1