public class AttributesMapper<A extends Attributes<A,V>,V> extends Mapper
Mapper
for mapping Attributes
.Attributes
interface.
This encapsulates the following steps:
SetEntityFieldMapperBehavior
is created using an AttributesSetter
Mapper.setBehaviors(Map)
is already called; so if you call or override ensure the init()
alizations made in this class
are not wiped out. Call super.init() or simply add a property to the map. For Spring this is handled by init()
being in PostConstruct
AttributesSetter
,
Serialized FormConstructor and Description |
---|
AttributesMapper() |
AttributesMapper(AttributesMapper mapper) |
Modifier and Type | Method and Description |
---|---|
AttributesSetter<A,V> |
getAttributesSetter() |
protected void |
init() |
void |
setAttributesSetter(AttributesSetter<A,V> attributesSetter) |
addBehavior, getBehavior, getBehaviors, getEntityClass, getFieldName, getId, getProcessor, setBehaviors, setEntityClass, setFieldName, setId, setProcessor
public AttributesMapper()
public AttributesMapper(AttributesMapper mapper)
@PostConstruct protected void init()
public AttributesSetter<A,V> getAttributesSetter()
public void setAttributesSetter(AttributesSetter<A,V> attributesSetter)
Copyright © 2018. All rights reserved.