/** * This listener runs after jaxb unmarshalling and reconnects children properties to their parent maps (as we don't * send them avoiding cyclic references). */ public void afterUnmarshal(Object u, Object parent) { for (Property p : this.map.values()) { p.setParentMap(this); } } }
/** * Put a child property into this map keyed on the given property's name. This method also sets the * {@link Property#setParentMap(PropertyMap) parent map} for the child property to make persistence work. * * @param property the property to add to this map. */ public void put(@NotNull Property property) { getMap().put(property.getName(), property); property.setParentMap(this); }