public class HookRegisterUtility extends Object
Modifier and Type | Method and Description |
---|---|
static void |
registerHooks(ExtendedInterpreter interpreter)
Create hook instances and chain them up based on the configuration file.
|
public static void registerHooks(ExtendedInterpreter interpreter)
hook.0
, hook.1
... properties
keys and their value is the name of the class that implements the com.scriptbasic.interface.InterpreterHook
interface.
The method loads the classes, creates a new instance of each configured class and registers the new object in the interpreter.
Note that registering does not include the call to the method InterpreterHook.init()
. It is executed when all the hook objects are
chained and the init()
invocation already uses the normal
chaining.
interpreter
- Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.