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 |
---|---|
java.lang.Object |
getAttribute(ResourceResolver resolver,
java.lang.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. |
java.util.Collection<java.lang.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
java.util.Collection<java.lang.String> getAttributeNames(ResourceResolver resolver)
getAttribute(ResourceResolver, String)
method.resolver
- The resource resolvernull
java.lang.IllegalStateException
- if this resource provider has already been
closed.java.lang.Object getAttribute(ResourceResolver resolver, java.lang.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.java.lang.NullPointerException
- if name
is null
.java.lang.IllegalStateException
- if this resource provider has already been closed.Copyright © 2018 The Apache Software Foundation. All rights reserved.