public class EventHelper extends Object
Constructor and Description |
---|
EventHelper() |
Modifier and Type | Method and Description |
---|---|
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
|
static org.apache.sling.discovery.TopologyEvent |
newChangingEvent(BaseTopologyView oldView)
Simple factory method for creating a TOPOLOGY_CHANGING event with the given oldView
|
static org.apache.sling.discovery.TopologyEvent |
newInitEvent(BaseTopologyView newView)
Simple factory method for creating a TOPOLOGY_INIT event with the given newView
|
static 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
|
public static org.apache.sling.discovery.TopologyEvent newInitEvent(BaseTopologyView newView)
public static org.apache.sling.discovery.TopologyEvent newChangingEvent(BaseTopologyView oldView)
public static org.apache.sling.discovery.TopologyEvent newChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)
public static org.apache.sling.discovery.TopologyEvent newPropertiesChangedEvent(BaseTopologyView oldView, BaseTopologyView newView)
public static String toShortString(org.apache.sling.discovery.TopologyEvent event)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.