X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fspi%2FForwardingDOMNotificationService.java;h=44a10fb21cb202fec10887718b13233e22692953;hb=aaea3e9a92ae9d6fac04c4a065db4b35cbca9ed0;hp=5199a3893bf64c101ee3528b6ebff18f65193d78;hpb=81b58527159d1ae07e7042372ca78b7dc769a7c7;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/md/sal/dom/spi/ForwardingDOMNotificationService.java b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/md/sal/dom/spi/ForwardingDOMNotificationService.java index 5199a3893b..44a10fb21c 100644 --- a/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/md/sal/dom/spi/ForwardingDOMNotificationService.java +++ b/opendaylight/md-sal/sal-dom-spi/src/main/java/org/opendaylight/controller/md/sal/dom/spi/ForwardingDOMNotificationService.java @@ -10,26 +10,29 @@ package org.opendaylight.controller.md.sal.dom.spi; import com.google.common.collect.ForwardingObject; import java.util.Collection; import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListener; -import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListenerRegistration; import org.opendaylight.controller.md.sal.dom.api.DOMNotificationService; +import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.model.api.SchemaPath; /** * Utility implementation of a {@link DOMNotificationService} which forwards all requests * to a delegate instance. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.spi.ForwardingDOMNotificationService} instead. */ +@Deprecated(forRemoval = true) public abstract class ForwardingDOMNotificationService extends ForwardingObject implements DOMNotificationService { @Override protected abstract DOMNotificationService delegate(); @Override - public DOMNotificationListenerRegistration registerNotificationListener(final DOMNotificationListener listener, + public ListenerRegistration registerNotificationListener(final T listener, final Collection types) { return delegate().registerNotificationListener(listener, types); } @Override - public DOMNotificationListenerRegistration registerNotificationListener(final DOMNotificationListener listener, + public ListenerRegistration registerNotificationListener(final T listener, final SchemaPath... types) { return delegate().registerNotificationListener(listener, types); }