/** * This listener runs after jaxb unmarshalling and reconnects children properties to their parent configurations (as * we don't send them avoiding cyclic references). */ public void afterUnmarshal(Object u, Object parent) { for (Property p : this.properties.values()) { p.setConfiguration(this); } }
/** * Adds the given property to this Configuration object. The property can be a * {@link PropertySimple simple property}, a {@link PropertyList list of properties} or a * {@link PropertyMap map of properties}. * * @param value the new property */ @Override public void put(Property value) { Map<String, Property> map = getMap(); if (value.getName()!=null) { map.put(value.getName().intern(),value); } else { map.put(value.getName(), value); } value.setConfiguration(this); }