Pre Advices
With this interceptor you can intercept local event actions and execute things before the requested action executes. You can do it globally by using the preHandler()
method or targeted to a specific action pre{actionName}()
.
The arguments received by these interceptors are:
event
: The request context referenceaction
: The action name that was interceptedeventArguments
: The struct of extra arguments sent to an action if executed viarunEvent()
rc
: The RC referenceprc
: The PRC Reference
Exceptions & Only Lists
You can fine tune these interception methods by leveraging two public properties in the handler:
this.prehandler_only
: A list of actions that thepreHandler()
action will fire ONLY!this.prehandler_except
: A list of actions that thepreHandler()
action will NOT fire on
Last updated