Package com.adobe.granite.confmgr
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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Conf
getConf(Resource resource)
Deprecated.Retrieves aConf
for the given resource using the resource resolver behind the given resource.Conf
getConf(Resource resource, ResourceResolver configResolver)
Deprecated.Retrieves aConf
for the given resource, but will make all lookups on the configuration tree using the configResolver.
-
-
-
Method Detail
-
getConf
Conf getConf(Resource resource)
Deprecated.Retrieves aConf
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 aConf
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 resolvedconfigResolver
- a dedicated resource resolver to be used for lookups under the referenced configuration tree(s)- Returns:
- a configuration (never null)
-
-