X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fspi%2FForwardingDOMNotificationService.java;h=b7d8b96e4d763a39e241acf530a82f76fd978b01;hp=5199a3893bf64c101ee3528b6ebff18f65193d78;hb=3ec97cd0a86ad1b79f6854dc6924eb7b06e359a3;hpb=4b2e28032b61c23e2c488a3f33c76611fc80c9d7 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..b7d8b96e4d 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 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); }