Refactored implementation of Notification Invoker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / spi / NotificationInvokerFactory.java
diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/spi/NotificationInvokerFactory.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/spi/NotificationInvokerFactory.java
new file mode 100644 (file)
index 0000000..a68d1e1
--- /dev/null
@@ -0,0 +1,23 @@
+package org.opendaylight.controller.sal.binding.spi;
+
+import java.util.Set;
+
+import org.opendaylight.controller.sal.binding.api.NotificationListener;
+import org.opendaylight.yangtools.yang.binding.Notification;
+
+public interface NotificationInvokerFactory {
+
+    NotificationInvoker invokerFor(org.opendaylight.yangtools.yang.binding.NotificationListener instance);
+
+    public interface NotificationInvoker {
+
+        Set<Class<? extends Notification>> getSupportedNotifications();
+
+        NotificationListener<Notification> getInvocationProxy();
+
+        public abstract void close();
+
+        org.opendaylight.yangtools.yang.binding.NotificationListener getDelegate();
+
+    }
+}