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 TypeMethodDescriptionboolean
hasPostExecutionCallback
(Method method) Check if the provider has a post execution callback for the given method.boolean
hasPreExecutionCallback
(Method method) Check if the provider has a pre execution callback for the given method.void
postExecutionCallback
(Method method, Object result) Actual callback after the method got executed.void
preExecutionCallback
(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:
true
if 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:
true
if 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
-