interceptor concept introduced: entity adapter fields referenced in a
[mir.git] / source / mir / generator / CompositeGeneratorLibrary.java
index a9e9a70..dc7c267 100755 (executable)
@@ -46,7 +46,7 @@ public class CompositeGeneratorLibrary implements Generator.Library {
     generatorLibraries.put(aQualifier, aLibrary);
   }
 
-  public Generator makeGenerator(String anIdentifier) throws GeneratorExc, GeneratorFailure {
+  public Generator makeGenerator(String anIdentifier, Generator.Interceptor anInterceptor) throws GeneratorExc, GeneratorFailure {
     String qualifier;
     String libraryName;
     int position;
@@ -61,10 +61,10 @@ public class CompositeGeneratorLibrary implements Generator.Library {
       if (library==null)
         throw new GeneratorExc("CompositeGeneratorLibrary: library '"+libraryName+"' not found");
 
-      return library.makeGenerator(qualifier);
+      return library.makeGenerator(qualifier, anInterceptor);
     }
                if (defaultLibrary!=null)
-                 return defaultLibrary.makeGenerator(anIdentifier);
+                 return defaultLibrary.makeGenerator(anIdentifier, anInterceptor);
                throw new GeneratorExc("CompositeGeneratorLibrary: no default library speficied");
   }
 }
\ No newline at end of file