package org.opendaylight.controller.md.sal.dom.api;
import java.util.Collection;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
/**
* A {@link DOMService} which allows its users to subscribe to receive
* {@link DOMNotification}s.
+ *
+ * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMNotificationService} instead
*/
+@Deprecated
public interface DOMNotificationService extends DOMService {
/**
* Register a {@link DOMNotificationListener} to receive a set of notifications. As with
* @throws NullPointerException if either of the arguments is null
*/
<T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(
- @Nonnull T listener, @Nonnull Collection<SchemaPath> types);
+ @NonNull T listener, @NonNull Collection<SchemaPath> types);
/**
* Register a {@link DOMNotificationListener} to receive a set of notifications. As with
*/
// FIXME: Java 8: provide a default implementation of this method.
<T extends DOMNotificationListener> ListenerRegistration<T> registerNotificationListener(
- @Nonnull T listener, SchemaPath... types);
+ @NonNull T listener, SchemaPath... types);
}