private void checkIntegrity(Object proxy) { checkMandatoryProperties(proxy); if (propertyProcessorsEnabled) { for (IPropertyDescriptor propertyDescriptor : componentDescriptor.getPropertyDescriptors()) { if (!propertyDescriptor.isComputed()) { propertyDescriptor.preprocessSetter(proxy, straightGetProperty(proxy, propertyDescriptor.getName())); } } } }
/** * {@inheritDoc} */ @Override public void setValue(Object target, Object value) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { Object oldValue = getValue(target); Object actualNewValue = value; // target instance must be tested to avoid triggering twice the property // processors if the map contains a non-map model. if (target instanceof Map<?, ?> && getModelDescriptor() != null) { actualNewValue = getModelDescriptor().interceptSetter(target, value); getModelDescriptor().preprocessSetter(target, actualNewValue); } super.setValue(target, actualNewValue); // target instance must be tested to avoid triggering twice the property // processors if the map contains a non-map model. if (target instanceof Map<?, ?> && getModelDescriptor() != null) { getModelDescriptor().postprocessSetter(target, oldValue, actualNewValue); } }
case SETTER: interceptedValue = propertyDescriptor.interceptSetter(proxy, interceptedValue); propertyDescriptor.preprocessSetter(proxy, interceptedValue); break; case ADDER:
propertyDescriptor.preprocessSetter(proxy, actualNewProperty);
if (dryRun) { reversePropertyDescriptor.preprocessSetter(propertyValue, null); } else { getAccessorFactory().createPropertyAccessor(reversePropertyDescriptor.getName(), if (dryRun) { reversePropertyDescriptor.preprocessSetter(collectionElement, null); } else { getAccessorFactory().createPropertyAccessor(reversePropertyDescriptor.getName(),
if (defaultValue != null) { defaultValue = propertyDescriptor.interceptSetter(component, defaultValue); propertyDescriptor.preprocessSetter(component, defaultValue); component.straightSetProperty(propertyName, defaultValue); } else if (isReload) {