Class EventHelper
- java.lang.Object
-
- org.apache.sling.discovery.commons.providers.EventHelper
-
public class EventHelper extends java.lang.ObjectContains static factory methods for creating TopologyEvents with BaseTopologyView as well as some TopologyEvent related helper methods
-
-
Constructor Summary
Constructors Constructor Description EventHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopologyEventnewChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)Simple factory method for creating a TOPOLOGY_CHANGED event with the given old and new viewsstatic TopologyEventnewChangingEvent(BaseTopologyView oldView)Simple factory method for creating a TOPOLOGY_CHANGING event with the given oldViewstatic TopologyEventnewInitEvent(BaseTopologyView newView)Simple factory method for creating a TOPOLOGY_INIT event with the given newViewstatic TopologyEventnewPropertiesChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)static java.lang.StringtoShortString(TopologyEvent event)Returns a shorter toString than the default TopologyEvent.toString() which can be rather large and unusable in log files
-
-
-
Method Detail
-
newInitEvent
public static TopologyEvent newInitEvent(BaseTopologyView newView)
Simple factory method for creating a TOPOLOGY_INIT event with the given newView
-
newChangingEvent
public static TopologyEvent newChangingEvent(BaseTopologyView oldView)
Simple factory method for creating a TOPOLOGY_CHANGING event with the given oldView
-
newChangedEvent
public static TopologyEvent newChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)
Simple factory method for creating a TOPOLOGY_CHANGED event with the given old and new views
-
newPropertiesChangedEvent
public static TopologyEvent newPropertiesChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)
-
toShortString
public static java.lang.String toShortString(TopologyEvent event)
Returns a shorter toString than the default TopologyEvent.toString() which can be rather large and unusable in log files
-
-