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 FormConstructor 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, isCanceled
equals, getEventFilter, hashCode, matches
public 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–2021 XWiki. All rights reserved.