import java.util.Collection;
import java.util.EventListener;
import java.util.Map;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
/**
* Interface implemented by data consumers, e.g. processes wanting to act on data
* after it has been introduced to the conceptual data tree.
+ *
+ * @deprecated This interface is scheduled for removal in the next major release.
*/
+@Deprecated(forRemoval = true)
public interface DOMDataTreeListener extends EventListener {
/**
* Invoked whenever one or more registered subtrees change. The logical changes are reported,
* This includes all the subtrees this listener is subscribed to, even those
* which have not changed.
*/
- void onDataTreeChanged(@Nonnull Collection<DataTreeCandidate> changes,
- @Nonnull Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> subtrees);
+ void onDataTreeChanged(@NonNull Collection<DataTreeCandidate> changes,
+ @NonNull Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> subtrees);
/**
* Invoked when a subtree listening failure occurs. This can be triggered, for example, when a
*
* @param causes Collection of failure causes, may not be null or empty.
*/
- void onDataTreeFailed(@Nonnull Collection<DOMDataTreeListeningException> causes);
+ void onDataTreeFailed(@NonNull Collection<DOMDataTreeListeningException> causes);
}