Search in sources :

Example 6 with Registry

use of org.apache.archiva.redback.components.registry.Registry in project archiva by apache.

the class DefaultArchivaConfiguration method addRegistryChangeListener.

private void addRegistryChangeListener(RegistryListener listener) {
    Registry section = registry.getSection(KEY + ".user");
    if (section != null) {
        section.addChangeListener(listener);
    }
    section = registry.getSection(KEY + ".base");
    if (section != null) {
        section.addChangeListener(listener);
    }
}
Also used : Registry(org.apache.archiva.redback.components.registry.Registry) CommonsConfigurationRegistry(org.apache.archiva.redback.components.registry.commons.CommonsConfigurationRegistry)

Aggregations

Registry (org.apache.archiva.redback.components.registry.Registry)6 CommonsConfigurationRegistry (org.apache.archiva.redback.components.registry.commons.CommonsConfigurationRegistry)6 ArrayList (java.util.ArrayList)2 RegistryException (org.apache.archiva.redback.components.registry.RegistryException)2 BaseConfiguration (org.apache.commons.configuration.BaseConfiguration)2 Path (java.nio.file.Path)1 Collection (java.util.Collection)1 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1 List (java.util.List)1 ConfigurationRegistryReader (org.apache.archiva.configuration.io.registry.ConfigurationRegistryReader)1 ConfigurationRegistryWriter (org.apache.archiva.configuration.io.registry.ConfigurationRegistryWriter)1 AbstractUpdatePolicy (org.apache.archiva.policies.AbstractUpdatePolicy)1 CachedFailuresPolicy (org.apache.archiva.policies.CachedFailuresPolicy)1 ChecksumPolicy (org.apache.archiva.policies.ChecksumPolicy)1 DownloadErrorPolicy (org.apache.archiva.policies.DownloadErrorPolicy)1 Policy (org.apache.archiva.policies.Policy)1 PostDownloadPolicy (org.apache.archiva.policies.PostDownloadPolicy)1 PreDownloadPolicy (org.apache.archiva.policies.PreDownloadPolicy)1 RegistryListener (org.apache.archiva.redback.components.registry.RegistryListener)1