public Object getValue(Object instance, String propertyName) { if (instance == null || propertyName == null) return null; // First, check for bean property Object value = super.getValue(instance, propertyName); // Then check for Dictionary entry if (value == null && instance instanceof Dictionary) { Dictionary dictionary = (Dictionary)instance; value = dictionary.get(propertyName); } return value; }
@Override public Object getValue ( Object instance, String propertyName ) { if ( this.values.containsKey(propertyName) ) { return this.values.get(propertyName); } return super.getValue(instance, propertyName); } }
public Object getValue(Object instance, String propertyName) { if (instance == null || propertyName == null) return null; // First, check for bean property Object value = super.getValue(instance, propertyName); // Then check for Dictionary entry if (value == null && instance instanceof Dictionary) { Dictionary dictionary = (Dictionary)instance; value = dictionary.get(propertyName); } return value; } }
public Object getValue(Object instance, String propertyName) { if (instance == null || propertyName == null) return null; // First, check for bean property Object value = super.getValue(instance, propertyName); // Then check for Dictionary entry if (value == null && instance instanceof Dictionary) { Dictionary dictionary = (Dictionary)instance; value = dictionary.get(propertyName); } return value; } }