MCPcopy Create free account
hub / github.com/GateNLP/gate-core / loadClasses

Method loadClasses

src/main/java/gate/util/Javac.java:46–59  ·  view source on GitHub ↗

Compiles a set of java sources and loads the compiled classes in the gate class loader. @param sources a map from fully qualified classname to java source @param classLoader the classloader into which the sources should be compiled and loaded. Note that this classloader m

(Map<String, String> sources,
      GateClassLoader classLoader)

Source from the content-addressed store, hash-verified

44 * raised.
45 */
46 public static void loadClasses(Map<String, String> sources,
47 GateClassLoader classLoader) throws GateException {
48
49 if(compiler == null) {
50 setCompilerTypeFromUserConfig();
51 }
52
53 if (classLoader == null) {
54 Err.println("A null classloader was provided, using the Top-Level GATE classloader instead!");
55 classLoader = Gate.getClassLoader();
56 }
57
58 compiler.compile(sources, classLoader);
59 }
60
61 /**
62 * Sets the type of compiler to be used, based on the user's configuration.

Callers

nothing calls this directly

Calls 4

printlnMethod · 0.95
getClassLoaderMethod · 0.95
compileMethod · 0.80

Tested by

no test coverage detected