public class ScriptEvaluatingEvent extends AbstractCancelableEvent
This event is supposed to be sent with org.xwiki.rendering.transformation.MacroTransformationContext as the
source and org.xwiki.rendering.macro.script.ScriptMacroParameters as data.
ScriptEvaluatedEvent,
Serialized Form| Constructor and Description |
|---|
ScriptEvaluatingEvent()
Constructor initializing the event filter with an
AlwaysMatchingEventFilter, meaning that this event will match any
other event of the same type. |
ScriptEvaluatingEvent(EventFilter eventFilter)
Constructor using a custom
EventFilter. |
ScriptEvaluatingEvent(String scriptMacroName)
Constructor initializing the event filter with a
FixedNameEventFilter,
meaning that this event will match only events of the same type affecting the same passed name. |
cancel, cancel, getReason, isCanceledequals, getEventFilter, hashCode, matchespublic ScriptEvaluatingEvent()
AlwaysMatchingEventFilter, meaning that this event will match any
other event of the same type.public ScriptEvaluatingEvent(String scriptMacroName)
FixedNameEventFilter,
meaning that this event will match only events of the same type affecting the same passed name.scriptMacroName - name of the macro to match, e.g. "velocity"public ScriptEvaluatingEvent(EventFilter eventFilter)
EventFilter.eventFilter - the filter to use for matching eventsCopyright © 2004–2017 XWiki. All rights reserved.