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(@Nonnull Object adaptable, @Nonnull Class<T> target)
getAdapter
in interface org.apache.sling.api.adapter.AdapterFactory
ModelRegistrar
or null
if no model for the given resource exists or
the resource model's type does not match the target type.Copyright © 2024. All rights reserved.