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;
/**
protected abstract DOMNotificationService delegate();
@Override
- public DOMNotificationListenerRegistration registerNotificationListener(final DOMNotificationListener listener,
+ public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener,
final Collection<SchemaPath> types) {
return delegate().registerNotificationListener(listener, types);
}
@Override
- public DOMNotificationListenerRegistration registerNotificationListener(final DOMNotificationListener listener,
+ public <T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(final T listener,
final SchemaPath... types) {
return delegate().registerNotificationListener(listener, types);
}