From c9196e020a935593ba4ee48b37228e7e731dfaca Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 10 Aug 2017 13:09:48 +0200 Subject: HONEYCOMB-387: bind HoneycombNotification2Netconf as EagerSingleton https://gerrit.fd.io/r/#/c/7411/10 moved HoneycombNotification2Netconf instance creation out of distribution's Main. HoneycombNotification2Netconf is not used in any provider, so needs to be initialized eagerly. Change-Id: I1a5cfe6eb83b75a0b175052a8bda32eb4619218e Signed-off-by: Marek Gradzki --- .../src/main/java/io/fd/honeycomb/northbound/netconf/NetconfModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/northbound/netconf/src/main/java/io/fd/honeycomb/northbound/netconf/NetconfModule.java b/infra/northbound/netconf/src/main/java/io/fd/honeycomb/northbound/netconf/NetconfModule.java index 01f57ed73..d9a85cce1 100644 --- a/infra/northbound/netconf/src/main/java/io/fd/honeycomb/northbound/netconf/NetconfModule.java +++ b/infra/northbound/netconf/src/main/java/io/fd/honeycomb/northbound/netconf/NetconfModule.java @@ -122,7 +122,7 @@ public class NetconfModule extends NorthboundPrivateModule // Create HC notification manager + HC2Netconf translator bind(NotificationCollector.class).toProvider(HoneycombNotificationManagerProvider.class).in(Singleton.class); bind(HoneycombNotification2NetconfProvider.HoneycombNotification2Netconf.class) - .toProvider(HoneycombNotification2NetconfProvider.class).in(Singleton.class); + .toProvider(HoneycombNotification2NetconfProvider.class).asEagerSingleton(); expose(HoneycombNotification2NetconfProvider.HoneycombNotification2Netconf.class); configureServer(); -- cgit 1.2.3-korg