public static TopologyEvent newChangingEvent()

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


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