@Service @Property(name="adaptables",classValue={org.apache.sling.api.resource.Resource.class,org.apache.sling.api.resource.ResourceResolver.class,org.apache.sling.api.SlingHttpServletRequest.class}) @Property(name="adapters",classValue={net.adamcin.recap.api.RecapAddress.class,Address.class,AddressBook.class}) public class AddressBookAdapterFactory extends Object implements org.apache.sling.api.adapter.AdapterFactory
Constructor and Description |
---|
AddressBookAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
<AdapterType> |
getAdapter(Object adaptable,
Class<AdapterType> type) |
<AdapterType> |
getAdapter(org.apache.sling.api.resource.Resource adaptable,
Class<AdapterType> type) |
<AdapterType> |
getAdapter(org.apache.sling.api.resource.ResourceResolver adaptable,
Class<AdapterType> type) |
<AdapterType> |
getAdapter(org.apache.sling.api.SlingHttpServletRequest adaptable,
Class<AdapterType> type) |
AddressBook |
getAddressBook(org.apache.sling.api.resource.Resource addressBookResource) |
AddressBook |
getAddressBook(org.apache.sling.api.resource.ResourceResolver resolver) |
Address |
getAddressRequest(org.apache.sling.api.SlingHttpServletRequest request) |
Address |
getAddressResource(org.apache.sling.api.resource.Resource resource) |
public <AdapterType> AdapterType getAdapter(Object adaptable, Class<AdapterType> type)
getAdapter
in interface org.apache.sling.api.adapter.AdapterFactory
public <AdapterType> AdapterType getAdapter(org.apache.sling.api.resource.Resource adaptable, Class<AdapterType> type)
public <AdapterType> AdapterType getAdapter(org.apache.sling.api.SlingHttpServletRequest adaptable, Class<AdapterType> type)
public <AdapterType> AdapterType getAdapter(org.apache.sling.api.resource.ResourceResolver adaptable, Class<AdapterType> type)
public AddressBook getAddressBook(org.apache.sling.api.resource.Resource addressBookResource)
public Address getAddressResource(org.apache.sling.api.resource.Resource resource)
public Address getAddressRequest(org.apache.sling.api.SlingHttpServletRequest request)
public AddressBook getAddressBook(org.apache.sling.api.resource.ResourceResolver resolver)
Copyright © 2012-2016. All Rights Reserved.