org.xwiki.script.event
Class ScriptEvaluatingEvent
java.lang.Object
org.xwiki.observation.event.AbstractFilterableEvent
org.xwiki.observation.event.AbstractCancelableEvent
org.xwiki.script.event.ScriptEvaluatingEvent
- All Implemented Interfaces:
- Serializable, CancelableEvent, Event, FilterableEvent
public class ScriptEvaluatingEvent
- extends AbstractCancelableEvent
An event triggered just before evaluation of a script macro (Groovy, Velocity, etc.) is started. The script will not
be executed if this event is canceled.
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.
- Since:
- 2.6RC2
- Version:
- $Id: 334e0e04464d43afd47786afa1399d8396be15c4 $
- See Also:
ScriptEvaluatedEvent,
Serialized Form
| Methods inherited from interface org.xwiki.observation.event.Event |
matches |
ScriptEvaluatingEvent
public ScriptEvaluatingEvent()
- Constructor initializing the event filter with an
AlwaysMatchingEventFilter, meaning that this event will match any
other event of the same type.
ScriptEvaluatingEvent
public 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.
- Parameters:
scriptMacroName - name of the macro to match, e.g. "velocity"
ScriptEvaluatingEvent
public ScriptEvaluatingEvent(EventFilter eventFilter)
- Constructor using a custom
EventFilter.
- Parameters:
eventFilter - the filter to use for matching events
Copyright © 2004–2014 XWiki. All rights reserved.