Package org.eclipse.ease.modules
Interface IModuleCallbackProvider
public interface IModuleCallbackProvider
Interface for script function callbacks. Such callbacks can be registered for any method and allow to execute arbitrary code before and/or after a method
invocation from a module.
-
Method Summary
Modifier and Type Method Description booleanhasPostExecutionCallback(Method method)Check if the provider has a post execution callback for the given method.booleanhasPreExecutionCallback(Method method)Check if the provider has a pre execution callback for the given method.voidpostExecutionCallback(Method method, Object result)Actual callback after the method got executed.voidpreExecutionCallback(Method method, Object[] parameters)Actual callback before the method gets executed.
-
Method Details
-
hasPreExecutionCallback
Check if the provider has a pre execution callback for the given method.- Parameters:
method- method to look up- Returns:
trueif a pre execution callback is provided
-
hasPostExecutionCallback
Check if the provider has a post execution callback for the given method.- Parameters:
method- method to look up- Returns:
trueif a post execution callback is provided
-
preExecutionCallback
Actual callback before the method gets executed.- Parameters:
method- method that triggers callbackparameters- method call parameters
-
postExecutionCallback
Actual callback after the method got executed.- Parameters:
method- method that triggers callback
-