public class ResourceToModelMapper extends Object
Resource
onto a ResourceModel
using
the FieldValueMappingCallback
. Applies the registered
post processors
to the model before and
after the fields are mapped.Constructor and Description |
---|
ResourceToModelMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindAopSupport(io.neba.api.spi.AopSupport aopSupport) |
protected void |
bindProcessor(io.neba.api.spi.ResourceModelPostProcessor postProcessor) |
<T> T |
map(org.apache.sling.api.resource.Resource resource,
ResolvedModelSource<T> resolvedModelSource) |
protected void |
unbindAopSupport(io.neba.api.spi.AopSupport support) |
protected void |
unbindProcessor(io.neba.api.spi.ResourceModelPostProcessor postProcessor) |
public <T> T map(org.apache.sling.api.resource.Resource resource, ResolvedModelSource<T> resolvedModelSource)
T
- the model type.resource
- must not be null
.resolvedModelSource
- must not be null
.null
.protected void bindProcessor(io.neba.api.spi.ResourceModelPostProcessor postProcessor)
protected void unbindProcessor(io.neba.api.spi.ResourceModelPostProcessor postProcessor)
protected void bindAopSupport(io.neba.api.spi.AopSupport aopSupport)
protected void unbindAopSupport(io.neba.api.spi.AopSupport support)
Copyright © 2024. All rights reserved.