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

Method registerIREngine

src/main/java/gate/Gate.java:609–619  ·  view source on GitHub ↗

Registers a new IR engine. The class named should implement gate.creole.ir.IREngine and be accessible via the GATE class loader. @param className the fully qualified name of the class to be registered @throws GateException if the class does not implement the {@l

(String className)

Source from the content-addressed store, hash-verified

607 * if the named class cannot be found.
608 */
609 public static void registerIREngine(String className) throws GateException,
610 ClassNotFoundException {
611 Class<?> aClass = Class.forName(className, true, Gate.getClassLoader());
612 if(gate.creole.ir.IREngine.class.isAssignableFrom(aClass)) {
613 registeredIREngines.add(className);
614 }
615 else {
616 throw new GateException(className + " does not implement the "
617 + gate.creole.ir.IREngine.class.getName() + " interface!");
618 }
619 }
620
621 /**
622 * Unregisters a previously registered IR engine.

Callers

nothing calls this directly

Calls 3

getClassLoaderMethod · 0.95
addMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected