diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2017-08-10 13:09:48 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-08-10 13:09:51 +0200 |
commit | c9196e020a935593ba4ee48b37228e7e731dfaca (patch) | |
tree | 4b87c676888f09f980001248bda4da29a50630b8 /infra/northbound | |
parent | fd692c20d9dc48529aa7d545397f1b009d3bd479 (diff) |
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 <mgradzki@cisco.com>
Diffstat (limited to 'infra/northbound')
-rw-r--r-- | infra/northbound/netconf/src/main/java/io/fd/honeycomb/northbound/netconf/NetconfModule.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<NetconfConfiguration> // 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(); |