Class EventHelper
- java.lang.Object
-
- org.apache.sling.discovery.commons.providers.EventHelper
-
public class EventHelper extends java.lang.Object
Contains 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 TopologyEvent
newChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)
Simple factory method for creating a TOPOLOGY_CHANGED event with the given old and new viewsstatic TopologyEvent
newChangingEvent(BaseTopologyView oldView)
Simple factory method for creating a TOPOLOGY_CHANGING event with the given oldViewstatic TopologyEvent
newInitEvent(BaseTopologyView newView)
Simple factory method for creating a TOPOLOGY_INIT event with the given newViewstatic TopologyEvent
newPropertiesChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)
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
-
-
-
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
-
-