protected void modified()

in src/main/java/org/apache/sling/discovery/impl/support/StandardPropertyProvider.java [106:120]


    protected void modified(final ComponentContext cc) {
        this.propagationService = cc.getBundleContext().registerService(PropertyProvider.class.getName(),
                (PropertyProvider) name -> {
                    if ( InstanceDescription.PROPERTY_DESCRIPTION.equals(name) ) {
                        return settings.getSlingDescription();
                    }
                    if ( InstanceDescription.PROPERTY_NAME.equals(name) ) {
                        return settings.getSlingName();
                    }
                    if ( InstanceDescription.PROPERTY_ENDPOINTS.equals(name) ) {
                        return endpointString;
                    }
                    return null;
                }, this.getRegistrationProperties());
    }