Package erjang.beam

Examples of erjang.beam.RamClassRepo


  File jarFile = new File(erjdir(), moduleJarFileName(moduleName, crc));

  if (jarFile.exists()) {
      return new EModuleClassLoader(jarFile.toURI().toURL());
  }
  RamClassRepo repo = new RamClassRepo();

  try {
      Compiler.compile(beam_parser.load(beam_data.getByteArray()), repo);

      repo.close();
      cache.put(moduleName, repo);
      if (useAsyncPersisting) persister.enqueue(jarFile, repo);
      else if (useSyncPersisting) persister.persist(jarFile, repo);
  } finally {
      try {repo.close();
    // jarFile.delete();
      } catch (Exception e) {}
  }

  return new EModuleClassLoader(jarFile.toURI().toURL(), repo);
View Full Code Here

TOP

Related Classes of erjang.beam.RamClassRepo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.