@Service public class ResourceToModelAdapter extends Object implements org.apache.sling.api.adapter.AdapterFactory
Resource to it's ResourceModel using the
ModelRegistry to lookup and the ResourceToModelMapper to map the model.ResourceToModelAdapterUpdater| Constructor and Description |
|---|
ResourceToModelAdapter() |
public <T> T getAdapter(Object adaptable, Class<T> target)
getAdapter in interface org.apache.sling.api.adapter.AdapterFactoryModelRegistrar
or null if no model for the given resource exists or
the resource model's type does not match the target type.Copyright © 2014–2015. All rights reserved.