org.apache.sling.api.adapter
Interface Adaptable

All Known Subinterfaces:
Resource, ResourceResolver, SlingHttpServletRequest, SlingHttpServletResponse
All Known Implementing Classes:
AbstractResource, AuthorizableResource, BundleResource, FsResource, JcrResourceResolver, JspSlingHttpServletResponseWrapper, MockResource, MockResourceResolver, MockSlingHttpServletRequest, NonExistingResource, OnDemandReaderRequest, OnDemandWriterResponse, RedirectResource, ResourceWrapper, SlingAdaptable, SlingAdaptable, SlingHttpServletRequestImpl, SlingHttpServletRequestWrapper, SlingHttpServletResponseImpl, SlingHttpServletResponseWrapper, SlingServletRequestAdapter, SlingServletResponseAdapter, StarResource, SyntheticResource

public interface Adaptable


Method Summary
<AdapterType>
AdapterType
adaptTo(Class<AdapterType> type)
          Adapts the adaptable to another type.
 

Method Detail

adaptTo

<AdapterType> AdapterType adaptTo(Class<AdapterType> type)
Adapts the adaptable to another type.

Type Parameters:
AdapterType - The generic type to which this resource is adapted to
Parameters:
type - The Class object of the target type, such as Node.class
Returns:
The adapter target or null if the resource cannot adapt to the requested type


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.