public interface ResourceModelCache
resource adaptationsto a specific target type. They are invoked by the generic NEBA adapter factory prior to the lookup and mapping of a
ResourceModel. If the model is not contained in any cache, it is obtained from a
ResourceModelFactory, mapped and afterwards
addedto all known
resource model caches.
nullmodel wins. There is no guarantee concerning the order in which caches are invoked.
storedin all available caches.
resource modelrepresented by the model type and any subsequent resource models mapped to it
@CheckForNull <T> T get(Object key)
key- The key used to identify the stored model. Never
<T> void put(@Nonnull org.apache.sling.api.resource.Resource resource, @CheckForNull T model, @Nonnull Object key)
resource- The resource
adaptedto the target type. Never
model- the model representing the mapped result of the adaptation. Can be
key- the key by which the model is identified and
Copyright © 2018. All rights reserved.