public synchronized void notifyChange()

in src/main/java/org/apache/sling/installer/provider/file/impl/ServicesListener.java [87:100]


    public synchronized void notifyChange() {
        final boolean shouldRun = this.installer.hasConfigurations();
        if ( (shouldRun && !running) || (!shouldRun && running) ) {
            final OsgiInstaller installer = (OsgiInstaller)this.installerListener.getService();
            final SlingSettingsService settings = (SlingSettingsService)this.settingsListener.getService();
            if ( installer != null && settings != null && !running ) {
                logger.debug("Starting scanner");
                this.startScanner(installer, settings);
            } else if ( running && (installer == null || settings == null) ) {
                logger.debug("Stopping scanner");
                this.stopScanner();
            }
        }
    }