Add service reference binding to config registry.
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / model / Annotation.java
index 5ec359ea8d842fbb3462debe30e85ebe3f616739..59368e8e498754b559096425c75eb0b45f5af058 100644 (file)
@@ -49,10 +49,13 @@ public class Annotation {
         Preconditions.checkNotNull(exportedClassName,
                 "Cannot create annotation from null exportedClassName");
 
-        List<Parameter> params = Lists.newArrayList(new Parameter("value",
-                q(qname.getLocalName())));
-        params.add(new Parameter("osgiRegistrationType", exportedClassName
-                + ".class"));
+        List<Parameter> params = Lists.newArrayList(new Parameter("value", q(qname.toString())));
+        params.add(new Parameter("osgiRegistrationType", exportedClassName + ".class"));
+
+        params.add(new Parameter("namespace", q(qname.getNamespace().toString())));
+        params.add(new Parameter("revision", q(qname.getFormattedRevision())));
+        params.add(new Parameter("localName", q(qname.getLocalName())));
+
         return new Annotation(
                 ServiceInterfaceAnnotation.class.getCanonicalName(), params);
     }