ResourceProvider
@Deprecated @ConsumerType public interface AttributableResourceProvider extends ResourceProvider
ResourceProvider
.
It allows to add attributes to the set of available attributes from a
resource resolver.
This extension is supported for services directly implementing the
ResourceProvider
interface and ResourceProvider
s
returned through a ResourceProviderFactory
.ResourceResolver.getAttribute(String)
,
ResourceResolver.getAttributeNames()
OWNS_ROOTS, RESOURCE_TYPE_SYNTHETIC, ROOTS, SERVICE_NAME, USE_RESOURCE_ACCESS_SECURITY
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(ResourceResolver resolver,
String name)
Deprecated.
Returns the value of the given resource provider attribute or
null
if the attribute is not set or not visible (as e.g. |
Collection<String> |
getAttributeNames(ResourceResolver resolver)
Deprecated.
Returns a collection of attribute names whose value can be retrieved
calling the
getAttribute(ResourceResolver, String) method. |
getResource, getResource, listChildren
Collection<String> getAttributeNames(ResourceResolver resolver)
getAttribute(ResourceResolver, String)
method.resolver
- The resource resolvernull
IllegalStateException
- if this resource provider has already been
closed.Object getAttribute(ResourceResolver resolver, String name)
null
if the attribute is not set or not visible (as e.g. security
sensitive attributes).resolver
- The resource resolvername
- The name of the attribute to accessnull
if the attribute
is not set or not accessible.NullPointerException
- if name
is null
.IllegalStateException
- if this resource provider has already been closed.Copyright © 2017 The Apache Software Foundation. All rights reserved.