@Service 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 |
|---|---|
void |
add(io.neba.api.resourcemodels.ResourceModelPostProcessor postProcessor) |
<T> T |
map(org.apache.sling.api.resource.Resource resource,
OsgiBeanSource<T> modelSource) |
void |
remove(io.neba.api.resourcemodels.ResourceModelPostProcessor postProcessor) |
public <T> T map(org.apache.sling.api.resource.Resource resource,
OsgiBeanSource<T> modelSource)
T - the bean type.resource - must not be null.modelSource - must not be null.null.public void add(io.neba.api.resourcemodels.ResourceModelPostProcessor postProcessor)
public void remove(io.neba.api.resourcemodels.ResourceModelPostProcessor postProcessor)
Copyright © 2014–2015. All rights reserved.