public interface IActionExecutor
Modifier and Type | Method and Description |
---|---|
void |
destroy()
A subclass of
IActionExecutor should override this method if it has to destroy any internal properties. |
AssertionResult |
execute(PolicyActionInstance action,
PolicyContext policyContext)
A subclass of
IActionExecutor should override this method if it has any operation to perform on executing the policy. |
void |
init()
A subclass of
IActionExecutor should override this method if it has to initialize any internal properties. |
void init()
IActionExecutor
should override this method if it has to initialize any internal properties.AssertionResult execute(PolicyActionInstance action, PolicyContext policyContext) throws PolicyException
IActionExecutor
should override this method if it has any operation to perform on executing the policy.action
- The current PolicyActionInstance
to be executed.policyContext
- the policyContext holds context information to execute.AssertionResult
objectPolicyException
- if encounters an internal error on executing the policy actionvoid destroy()
IActionExecutor
should override this method if it has to destroy any internal properties.