JavaIdentifierNormalizer ThreadSafe/Memory leak fix
[mdsal.git] / binding2 / mdsal-binding2-generator-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / generator / spi / TypeProvider.java
index e33d63f4c4335b27d1ce274c1f5024f345692802..6989c3e8ed9425cbf2f542cdbe9ffab0e1f00479 100644 (file)
@@ -9,6 +9,7 @@
 package org.opendaylight.mdsal.binding.javav2.generator.spi;
 
 import com.google.common.annotations.Beta;
+import org.opendaylight.mdsal.binding.javav2.generator.context.ModuleContext;
 import org.opendaylight.mdsal.binding.javav2.model.api.Restrictions;
 import org.opendaylight.mdsal.binding.javav2.model.api.Type;
 import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
@@ -38,7 +39,7 @@ public interface TypeProvider {
      * @param parentNode parent node
      * @return Resolved Type
      */
-    Type javaTypeForSchemaDefinitionType(TypeDefinition<?> type, SchemaNode parentNode);
+    Type javaTypeForSchemaDefinitionType(TypeDefinition<?> type, SchemaNode parentNode, ModuleContext context);
 
     /**
      *
@@ -47,7 +48,8 @@ public interface TypeProvider {
      * @param restrictions restrictions applied to given type definition
      * @return Resolved Type
      */
-    Type javaTypeForSchemaDefinitionType(TypeDefinition<?> type, SchemaNode parentNode, Restrictions restrictions);
+    Type javaTypeForSchemaDefinitionType(TypeDefinition<?> type, SchemaNode parentNode, Restrictions restrictions,
+            ModuleContext context);
 
     /**
      * Returns string containing code for creation of new type instance.