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