public static TopologyEvent newChangedEvent()

in src/main/java/org/apache/sling/discovery/commons/providers/EventHelper.java [52:66]


    public static TopologyEvent newChangedEvent(final BaseTopologyView oldView, final BaseTopologyView newView) {
        if (oldView==null) {
            throw new IllegalStateException("oldView must not be null");
        }
        if (oldView.isCurrent()) {
            throw new IllegalStateException("oldView must not be current");
        }
        if (newView==null) {
            throw new IllegalStateException("newView must not be null");
        }
        if (!newView.isCurrent()) {
            throw new IllegalStateException("newView must be current");
        }
        return new TopologyEvent(Type.TOPOLOGY_CHANGED, oldView, newView);
    }