Class DirectFieldAccessFallbackBeanWrapper
java.lang.Object
org.springframework.beans.PropertyEditorRegistrySupport
org.springframework.beans.TypeConverterSupport
org.springframework.beans.AbstractPropertyAccessor
org.springframework.beans.AbstractNestablePropertyAccessor
org.springframework.beans.BeanWrapperImpl
org.springframework.data.util.DirectFieldAccessFallbackBeanWrapper
- All Implemented Interfaces:
BeanWrapper, ConfigurablePropertyAccessor, PropertyAccessor, PropertyEditorRegistry, TypeConverter
Custom extension of
BeanWrapperImpl that falls back to direct field access in case the object or type being
wrapped does not use accessor methods.- Author:
- Oliver Gierke, Johannes Englmeier
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractNestablePropertyAccessor
AbstractNestablePropertyAccessor.PropertyHandler, AbstractNestablePropertyAccessor.PropertyTokenHolder -
Field Summary
Fields inherited from interface PropertyAccessor
NESTED_PROPERTY_SEPARATOR, NESTED_PROPERTY_SEPARATOR_CHAR, PROPERTY_KEY_PREFIX, PROPERTY_KEY_PREFIX_CHAR, PROPERTY_KEY_SUFFIX, PROPERTY_KEY_SUFFIX_CHAR -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectgetPropertyValue(String propertyName) voidsetPropertyValue(String propertyName, @Nullable Object value) Methods inherited from class BeanWrapperImpl
convertForProperty, createNotWritablePropertyException, getLocalPropertyHandler, getPropertyDescriptor, getPropertyDescriptors, newNestedPropertyAccessor, setBeanInstance, setIntrospectionClass, setWrappedInstanceMethods inherited from class AbstractNestablePropertyAccessor
convertForProperty, getAutoGrowCollectionLimit, getFinalPath, getNestedPath, getPropertyAccessorForPropertyPath, getPropertyHandler, getPropertyType, getPropertyTypeDescriptor, getPropertyValue, getRootClass, getRootInstance, getWrappedClass, getWrappedInstance, isReadableProperty, isWritableProperty, setAutoGrowCollectionLimit, setPropertyValue, setPropertyValue, setWrappedInstance, toStringMethods inherited from class AbstractPropertyAccessor
isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setExtractOldValueForEditor, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValuesMethods inherited from class TypeConverterSupport
convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessaryMethods inherited from class PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, setConversionService, setDefaultEditorRegistrar, useConfigValueEditorsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BeanWrapper
getAutoGrowCollectionLimit, getWrappedClass, getWrappedInstance, setAutoGrowCollectionLimitMethods inherited from interface ConfigurablePropertyAccessor
getConversionService, isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setConversionService, setExtractOldValueForEditorMethods inherited from interface PropertyAccessor
getPropertyType, getPropertyTypeDescriptor, isReadableProperty, isWritableProperty, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValuesMethods inherited from interface PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditorMethods inherited from interface TypeConverter
convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary
-
Constructor Details
-
DirectFieldAccessFallbackBeanWrapper
-
DirectFieldAccessFallbackBeanWrapper
-
-
Method Details
-
getPropertyValue
- Specified by:
getPropertyValuein interfacePropertyAccessor- Overrides:
getPropertyValuein classAbstractNestablePropertyAccessor
-
setPropertyValue
- Specified by:
setPropertyValuein interfacePropertyAccessor- Overrides:
setPropertyValuein classAbstractNestablePropertyAccessor
-