@ProviderType
public interface ConfigurationResourceResolver
ConfigurationResolver
is the right place.Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllContextPaths(Resource resource)
Get all context paths for which context-aware configurations could be defined.
|
String |
getContextPath(Resource resource)
Get the inner-most context path (deepest path) returned by
getAllContextPaths(Resource) . |
Resource |
getResource(Resource resource,
String bucketName,
String configName)
Get a context-aware singleton configuration resource defined by the given configuration name.
|
Collection<Resource> |
getResourceCollection(Resource resource,
String bucketName,
String configName)
Get a collection of context-aware configuration resources defined by the given configuration name.
|
@CheckForNull Resource getResource(@Nonnull Resource resource, @Nonnull String bucketName, @Nonnull String configName)
resource
- Context resource to fetch configuration forbucketName
- 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.configName
- Configuration name or relative path.null
.@Nonnull Collection<Resource> getResourceCollection(@Nonnull Resource resource, @Nonnull String bucketName, @Nonnull String configName)
resource
- Context resource to fetch configuration forbucketName
- 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.configName
- Configuration name or relative path.String getContextPath(@Nonnull Resource resource)
getAllContextPaths(Resource)
.resource
- Context resource to fetch configuration for@Nonnull Collection<String> getAllContextPaths(@Nonnull Resource resource)
resource
- Context resource to fetch configuration forCopyright © 2017 The Apache Software Foundation. All rights reserved.