Class EventHelper
java.lang.Object
org.apache.sling.discovery.commons.providers.EventHelper
Contains static factory methods for creating TopologyEvents with BaseTopologyView
as well as some TopologyEvent related helper methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 String
toShortString
(TopologyEvent event) Returns a shorter toString than the default TopologyEvent.toString() which can be rather large and unusable in log files
-
Constructor Details
-
EventHelper
public EventHelper()
-
-
Method Details
-
newInitEvent
Simple factory method for creating a TOPOLOGY_INIT event with the given newView -
newChangingEvent
Simple factory method for creating a TOPOLOGY_CHANGING event with the given oldView -
newChangedEvent
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
Returns a shorter toString than the default TopologyEvent.toString() which can be rather large and unusable in log files
-