X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fapi%2FNotificationService.java;h=c0e8ea5fee712047c347e14b758228532006ad6d;hb=a81d98f692b80c45bce3fe6a87e731abfb012a9f;hp=ba352359cceccc7028b56a2c26be25162e71ec49;hpb=7e21e3599954e05f6c098f171f080a671658d2bb;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/NotificationService.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/NotificationService.java index ba352359cc..c0e8ea5fee 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/NotificationService.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/NotificationService.java @@ -21,7 +21,7 @@ import org.opendaylight.yangtools.yang.binding.NotificationListener; * are registered using {@link #registerNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener)} * method. * - *
Dispatch Listener Example
+ *

Dispatch Listener Example

*

* Lets assume we have following YANG model: * @@ -40,14 +40,14 @@ import org.opendaylight.yangtools.yang.binding.NotificationListener; * * * The generated interface will be: - *

+ * {@code
  *  public interface ExampleListener extends NotificationListener {
  *      void onStart(Start notification);
  *      void onStop(Stop notification);
  *  }
- * 
+ * } * The following defines an implementation of the generated interface: - *
+ * {@code
  *  public class MyExampleListener implements ExampleListener {
  *      public void onStart(Start notification) {
  *          // do something
@@ -57,12 +57,12 @@ import org.opendaylight.yangtools.yang.binding.NotificationListener;
  *          // do something
  *      }
  *  }
- * 
+ * } * The implementation is registered as follows: - *
+ * {@code
  *  MyExampleListener listener = new MyExampleListener();
  *  ListenerRegistration reg = service.registerNotificationListener( listener );
- * 
+ * } * The onStart method will be invoked when someone publishes a Start notification and * the onStop method will be invoked when someone publishes a Stop notification. */