Package org.jppf.utils.hooks
Class HookInstance<E>
java.lang.Object
org.jppf.utils.hooks.HookInstance<E>
- Type Parameters:
E- the type of th ehook's interface.
Instance of a
Hook.- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionHookInstance(E instance) Initialize this hook with the specified method and instance. -
Method Summary
-
Constructor Details
-
HookInstance
Initialize this hook with the specified method and instance.- Parameters:
instance- the hook instance on which to invoke the method.
-
-
Method Details
-
invoke
Invoke the specified method on the hook instance, using the specified parameters.- Parameters:
methodName- the name of the method to invoke.parameters- the parmeters to use in the method invocation.- Returns:
- the return value of th emethod, or
nullif the method does not return anything.
-
dispose
public void dispose()Cleanup this hook instance and release its resources. -
toString
-
getInstance
Get the concrete instance.- Returns:
- an instance of a hook interface implementation.
-