Interface ConfMgr


  • @Deprecated
    @ProviderType
    public interface ConfMgr
    Deprecated.
    Use of the open source Apache Sling Context-Aware Configuration API is recommended for new code. The ConfMgr API is backed by the Sling CA implementation and will continue to be supported for existing code.
    Service to lookup and access configurations in the repository.
    • Method Detail

      • getConf

        Conf getConf​(Resource resource)
        Deprecated.
        Retrieves a Conf for the given resource using the resource resolver behind the given resource.
        Parameters:
        resource - a content resource for which a configuration should be resolved
        Returns:
        a configuration (never null)
      • getConf

        Conf getConf​(Resource resource,
                     ResourceResolver configResolver)
        Deprecated.
        Retrieves a Conf for the given resource, but will make all lookups on the configuration tree using the configResolver. Use this when a separate user is needed for the configuration lookups.
        Parameters:
        resource - a content resource for which a configuration should be resolved
        configResolver - a dedicated resource resolver to be used for lookups under the referenced configuration tree(s)
        Returns:
        a configuration (never null)