Refactored implementation of Notification Invoker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / codegen / RuntimeCodeSpecification.xtend
index c6e76c2907730df0a26d369089fa96f345b7cb31..c5648adaa53af7cb6b25e4584eb49b5861aab126 100644 (file)
@@ -17,11 +17,11 @@ import org.opendaylight.yangtools.yang.binding.NotificationListener
  */
 class RuntimeCodeSpecification {
 
-    public static val PACKAGE_PREFIX = "_gen.";
+    //public static val PACKAGE_PREFIX = "_gen.";
 
     public static val DIRECT_PROXY_SUFFIX = "DirectProxy";
     public static val ROUTER_SUFFIX = "Router";
-    public static val INVOKER_SUFFIX = "Invoker";
+    public static val INVOKER_SUFFIX = "ListenerInvoker";
 
     public static val DELEGATE_FIELD = "_delegate"
     public static val ROUTING_TABLE_FIELD_PREFIX = "_routes_"
@@ -52,7 +52,7 @@ class RuntimeCodeSpecification {
      * 
      */
     public static def getGeneratedName(Class<?> cls, String suffix) {
-        '''«PACKAGE_PREFIX»«cls.package.name».«cls.simpleName»$«suffix»'''.toString()
+        '''«cls.name»$$Broker$«suffix»'''.toString()
     }
 
     /**