X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-config%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Fmd%2Fsal%2Fbinding%2Fimpl%2FNotificationBrokerImplModule.java;h=6016c4a93c2d6b6b6f88a6dd849a5ead8bc62369;hp=ec4bc76f554f3a8fb7bcff890fc1c047743b7057;hb=4971aed628d669fec45185569b43d042ec650421;hpb=2fb4d7e732175a31d32e67968c957f8bfd887196 diff --git a/opendaylight/md-sal/sal-binding-config/src/main/java/org/opendaylight/controller/config/yang/md/sal/binding/impl/NotificationBrokerImplModule.java b/opendaylight/md-sal/sal-binding-config/src/main/java/org/opendaylight/controller/config/yang/md/sal/binding/impl/NotificationBrokerImplModule.java index ec4bc76f55..6016c4a93c 100644 --- a/opendaylight/md-sal/sal-binding-config/src/main/java/org/opendaylight/controller/config/yang/md/sal/binding/impl/NotificationBrokerImplModule.java +++ b/opendaylight/md-sal/sal-binding-config/src/main/java/org/opendaylight/controller/config/yang/md/sal/binding/impl/NotificationBrokerImplModule.java @@ -11,16 +11,17 @@ import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService import org.opendaylight.controller.md.sal.binding.api.NotificationService; import org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationProviderServiceAdapter; import org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationProviderServiceWithInterestListeners; -import org.opendaylight.controller.md.sal.binding.compat.HydrogenNotificationBrokerImpl; import org.opendaylight.controller.md.sal.binding.impl.BindingDOMNotificationPublishServiceAdapter; import org.opendaylight.controller.md.sal.binding.impl.BindingDOMNotificationServiceAdapter; import org.opendaylight.controller.md.sal.dom.api.DOMNotificationPublishService; import org.opendaylight.controller.md.sal.dom.spi.DOMNotificationSubscriptionListenerRegistry; -import org.opendaylight.controller.sal.binding.codegen.impl.SingletonHolder; /** -* -*/ + * Deprecated. + * + * @deprecated Replaced by blueprint wiring + */ +@Deprecated public final class NotificationBrokerImplModule extends org.opendaylight.controller.config.yang.md.sal.binding.impl.AbstractNotificationBrokerImplModule { @@ -43,21 +44,7 @@ public final class NotificationBrokerImplModule extends @Override public java.lang.AutoCloseable createInstance() { - - final NotificationPublishService notificationPublishService = getNotificationPublishAdapterDependency(); - final NotificationService notificationService = getNotificationAdapterDependency(); - - if(notificationPublishService != null & notificationService != null) { - return createHeliumAdapter(notificationPublishService,notificationService); - } - - /* - * FIXME: Switch to new broker (which has different threading model) - * once this change is communicated with downstream users or - * we will have adapter implementation which will honor Helium - * threading model for notifications. - */ - return new HydrogenNotificationBrokerImpl(SingletonHolder.getDefaultNotificationExecutor()); + return createHeliumAdapter(getNotificationPublishAdapterDependency(), getNotificationAdapterDependency()); } private static AutoCloseable createHeliumAdapter(final NotificationPublishService publishService,