Package org.xwiki.script.event
Class ScriptEvaluatedEvent
- java.lang.Object
-
- org.xwiki.observation.event.AbstractFilterableEvent
-
- org.xwiki.script.event.ScriptEvaluatedEvent
-
- All Implemented Interfaces:
Serializable
,Event
,FilterableEvent
public class ScriptEvaluatedEvent extends AbstractFilterableEvent
An event triggered right after evaluation of a script macro (Groovy, Velocity, etc.) was finished (no matter successfully or not).This event is supposed to be sent with
org.xwiki.rendering.transformation.MacroTransformationContext
as the source andorg.xwiki.rendering.macro.script.ScriptMacroParameters
as data.- Since:
- 2.6RC2
- Version:
- $Id: 0d6d7568ef879a02e4ea0c2363c6dc8bfb6cd66f $
- See Also:
ScriptEvaluatingEvent
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptEvaluatedEvent()
Constructor initializing the event filter with anAlwaysMatchingEventFilter
, meaning that this event will match any other event of the same type.ScriptEvaluatedEvent(String scriptMacroName)
Constructor initializing the event filter with aFixedNameEventFilter
, meaning that this event will match only events of the same type affecting the same passed name.ScriptEvaluatedEvent(EventFilter eventFilter)
Constructor using a customEventFilter
.
-
-
-
Constructor Detail
-
ScriptEvaluatedEvent
public ScriptEvaluatedEvent()
Constructor initializing the event filter with anAlwaysMatchingEventFilter
, meaning that this event will match any other event of the same type.
-
ScriptEvaluatedEvent
public ScriptEvaluatedEvent(String scriptMacroName)
Constructor initializing the event filter with aFixedNameEventFilter
, 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"
-
ScriptEvaluatedEvent
public ScriptEvaluatedEvent(EventFilter eventFilter)
Constructor using a customEventFilter
.- Parameters:
eventFilter
- the filter to use for matching events
-
-