You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:19:01 UTC
[sling-org-apache-sling-caconfig-api] 15/24: SLING-6024
Context-Aware Config: Introduce "bucket name" parameter in
ConfigurationResourceResolver
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.caconfig.api-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-api.git
commit c26f9d4a1de3457f6f54f727c94311fe0b1fcdd5
Author: Stefan Seifert <ss...@apache.org>
AuthorDate: Thu Sep 1 12:29:30 2016 +0000
SLING-6024 Context-Aware Config: Introduce "bucket name" parameter in ConfigurationResourceResolver
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/api@1758767 13f79535-47bb-0310-9956-ffa450edef68
---
.../config/resource/ConfigurationResourceResolver.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/contextaware/config/resource/ConfigurationResourceResolver.java b/src/main/java/org/apache/sling/contextaware/config/resource/ConfigurationResourceResolver.java
index c52aeda..6ebd698 100644
--- a/src/main/java/org/apache/sling/contextaware/config/resource/ConfigurationResourceResolver.java
+++ b/src/main/java/org/apache/sling/contextaware/config/resource/ConfigurationResourceResolver.java
@@ -39,18 +39,24 @@ public interface ConfigurationResourceResolver {
* Get a context-specific singleton configuration resource defined by the given configuration name.
*
* @param resource Context resource to fetch configuration for
+ * @param bucketName Configuration "bucket" name. Each high-level configuration resolver should store
+ * it's configuration data grouped in a child resource of the configuration resource. This is what
+ * we call a "bucket", and the resource name is specified with this parameter.
* @param configName Configuration name or relative path.
* @return Configuration resource or {@code null}.
*/
- @CheckForNull Resource getResource(@Nonnull Resource resource, @Nonnull String configName);
+ @CheckForNull Resource getResource(@Nonnull Resource resource, @Nonnull String bucketName, @Nonnull String configName);
/**
* Get a collection of context-specific configuration resources defined by the given configuration name.
* @param resource Context resource to fetch configuration for
+ * @param bucketName Configuration "bucket" name. Each high-level configuration resolver should store
+ * it's configuration data grouped in a child resource of the configuration resource. This is what
+ * we call a "bucket", and the resource name is specified with this parameter.
* @param configName Configuration name or relative path.
* @return Collection of configuration resources, the collection might be empty.
*/
- @Nonnull Collection<Resource> getResourceCollection(@Nonnull Resource resource, @Nonnull String configName);
+ @Nonnull Collection<Resource> getResourceCollection(@Nonnull Resource resource, @Nonnull String bucketName, @Nonnull String configName);
/**
* Get the inner-most context path (deepest path) returned by {@link #getAllContextPaths(Resource)}.
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.