Disconnect EffectiveModelContextListener from EventListener 15/109215/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Dec 2023 21:56:13 +0000 (22:56 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Dec 2023 22:12:14 +0000 (23:12 +0100)
j.u.EventListener should really be tied to j.u.EventObject, which is not
useful for our purposes. Ditch the reference in
EffectiveModelContextListener.

JIRA: YANGTOOLS-1551
Change-Id: Ifa2078bf2d0a689ded83a57432985a9087a3664b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/EffectiveModelContextListener.java

index ba40c792ea4d37beaf43e28bba52be36c4595858..bc308da35037cc4732114b11896f9e33be4bf47d 100644 (file)
@@ -8,18 +8,18 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 import com.google.common.annotations.Beta;
-import java.util.EventListener;
-import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.NonNullByDefault;
 
 /**
- * Interface for listeners interested in updates of an EffectiveModelContext.
+ * Interface for listeners interested in updates of an {@link EffectiveModelContext}.
  */
 @Beta
-public interface EffectiveModelContextListener extends EventListener {
+@NonNullByDefault
+public interface EffectiveModelContextListener {
     /**
      * Invoked when the model context changes.
      *
      * @param newModelContext New model context being installed
      */
-    void onModelContextUpdated(@NonNull EffectiveModelContext newModelContext);
+    void onModelContextUpdated(EffectiveModelContext newModelContext);
 }