public class FieldValueMappingCallback extends Object
mappable field of a
ResourceModel,
convert it to the suitable field type
and inject it into the corresponding field.| Constructor and Description |
|---|
FieldValueMappingCallback(Object model,
org.apache.sling.api.resource.Resource resource,
org.springframework.beans.factory.BeanFactory factory,
AnnotatedFieldMappers annotatedFieldMappers) |
| Modifier and Type | Method and Description |
|---|---|
void |
doWith(MappedFieldMetaData metaData)
Invoked for each
mappable field
of a ResourceModel to map the corresponding field's
value from the resource provided to the constructor. |
public FieldValueMappingCallback(Object model, org.apache.sling.api.resource.Resource resource, org.springframework.beans.factory.BeanFactory factory, AnnotatedFieldMappers annotatedFieldMappers)
model - the model to be mapped. Must not be null.resource - the source of property values for the model. Must not be null.factory - must not be null.annotatedFieldMappers - must not be null.public final void doWith(MappedFieldMetaData metaData)
mappable field
of a ResourceModel to map the corresponding field's
value from the resource provided to the constructor.metaData - must not be null.Copyright © 2014–2015. All rights reserved.