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 org.apache.sling.discovery.TopologyEvent
newChangedEvent
(BaseTopologyView oldView, BaseTopologyView newView) Simple factory method for creating a TOPOLOGY_CHANGED event with the given old and new viewsstatic org.apache.sling.discovery.TopologyEvent
newChangingEvent
(BaseTopologyView oldView) Simple factory method for creating a TOPOLOGY_CHANGING event with the given oldViewstatic org.apache.sling.discovery.TopologyEvent
newInitEvent
(BaseTopologyView newView) Simple factory method for creating a TOPOLOGY_INIT event with the given newViewstatic org.apache.sling.discovery.TopologyEvent
newPropertiesChangedEvent
(BaseTopologyView oldView, BaseTopologyView newView) static String
toShortString
(org.apache.sling.discovery.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
public static org.apache.sling.discovery.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 org.apache.sling.discovery.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
-