X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-generator%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fgenerator%2Fimpl%2Freactor%2FNotificationServiceGenerator.java;h=cfde7ed9a0193755d5e0a66a45d88095da2fa0bb;hb=51e77ede7295527329c81c7abf2cb71e637fd1a7;hp=4b6f415f721ed11248908db2e89be7a42776ffe7;hpb=128c1abfb15284e16cdb471bcaacdf7cf6a60eb1;p=mdsal.git diff --git a/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/NotificationServiceGenerator.java b/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/NotificationServiceGenerator.java index 4b6f415f72..cfde7ed9a0 100644 --- a/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/NotificationServiceGenerator.java +++ b/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/NotificationServiceGenerator.java @@ -22,6 +22,11 @@ import org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus; import org.opendaylight.yangtools.yang.model.api.Status; import org.opendaylight.yangtools.yang.model.api.stmt.NotificationEffectiveStatement; +/** + * Aggregate service for top-level {@code notification} statements for a particular module. It does not handle nested + * (YANG 1.1) notifications. + */ +// FIXME: eventually remove this generator final class NotificationServiceGenerator extends AbstractImplicitGenerator { private final List notifs; @@ -38,6 +43,7 @@ final class NotificationServiceGenerator extends AbstractImplicitGenerator { @Override GeneratedType createTypeImpl(final TypeBuilderFactory builderFactory) { final GeneratedTypeBuilder builder = builderFactory.newGeneratedTypeBuilder(typeName()); + // FIXME: MDSAL-496: mark this interface as deprecated builder.addImplementsType(BindingTypes.NOTIFICATION_LISTENER); for (NotificationGenerator gen : notifs) {