public class ValueMapResource extends SyntheticResource
RESOURCE_TYPE_NON_EXISTING
Constructor and Description |
---|
ValueMapResource(ResourceResolver resourceResolver,
ResourceMetadata rm,
String resourceType,
ValueMap vm) |
ValueMapResource(ResourceResolver resourceResolver,
String path,
String resourceType,
ValueMap vm) |
Modifier and Type | Method and Description |
---|---|
<Type> Type |
adaptTo(Class<Type> type)
Calls into the registered
AdapterManager to adapt this object to
the desired type . |
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, toString
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
setAdapterManager, unsetAdapterManager
public ValueMapResource(ResourceResolver resourceResolver, String path, String resourceType, ValueMap vm)
public ValueMapResource(ResourceResolver resourceResolver, ResourceMetadata rm, String resourceType, ValueMap vm)
public <Type> Type adaptTo(Class<Type> type)
SlingAdaptable
AdapterManager
to adapt this object to
the desired type
.
This method implements a cache of adapters to improve performance. That is repeated calls to this method with the same class will result in the same object to be returned.
adaptTo
in interface Adaptable
adaptTo
in class SlingAdaptable
Type
- The generic type to which this resource is adapted
totype
- The Class object of the target type, such as
javax.jcr.Node.class
or
java.io.File.class
null
if the resource cannot
adapt to the requested type"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"