java.lang.Object
org.apache.sling.discovery.commons.providers.EventHelper

public class EventHelper extends Object
Contains static factory methods for creating TopologyEvents with BaseTopologyView as well as some TopologyEvent related helper methods
  • Constructor Details

    • EventHelper

      public EventHelper()
  • Method Details

    • 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 String toShortString(TopologyEvent event)
      Returns a shorter toString than the default TopologyEvent.toString() which can be rather large and unusable in log files