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)
| 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. |
nothing calls this directly
no test coverage detected