Package com.adobe.granite.confmgr
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
Modifier and TypeMethodDescriptionDeprecated.Retrieves aConffor the given resource using the resource resolver behind the given resource.getConf(Resource resource, ResourceResolver configResolver) Deprecated.Retrieves aConffor the given resource, but will make all lookups on the configuration tree using the configResolver.
-
Method Details
-
getConf
Deprecated.Retrieves aConffor 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
Deprecated.Retrieves aConffor 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)
-