Esempio n. 1
0
  public static void resetModuleManager() {
    RepositoryManagerBuilder builder =
        new RepositoryManagerBuilder(
            new Logger() {

              @Override
              public void error(String str) {
                System.err.println("ERROR: " + str);
              }

              @Override
              public void warning(String str) {
                System.err.println("WARN: " + str);
              }

              @Override
              public void info(String str) {
                System.err.println("INFO: " + str);
              }

              @Override
              public void debug(String str) {
                System.err.println("DEBUG: " + str);
              }
            });
    RepositoryManager repoManager = builder.buildRepository();
    VFS vfs = new VFS();
    Context context = new Context(repoManager, vfs);
    moduleManager = new RuntimeModuleManager(context);
    moduleManager.initCoreModules();
    moduleManager.prepareForTypeChecking();
  }
Esempio n. 2
0
 public static void loadModule(
     String name, String version, ArtifactResult result, ClassLoader classLoader) {
   moduleManager.loadModule(name, version, result, classLoader);
 }