Class BeanWrapperSpy

java.lang.Object
org.apache.ignite.migrationtools.config.loader.BeanWrapperSpy
All Implemented Interfaces:
org.springframework.beans.BeanWrapper, org.springframework.beans.ConfigurablePropertyAccessor, org.springframework.beans.PropertyAccessor, org.springframework.beans.PropertyEditorRegistry, org.springframework.beans.TypeConverter

public class BeanWrapperSpy extends Object implements org.springframework.beans.BeanWrapper
A custom implementation that tracks which properties where explicitly set in the bean.
  • Constructor Details

    • BeanWrapperSpy

      public BeanWrapperSpy(org.apache.commons.collections4.MultiValuedMap<Object,org.apache.commons.lang3.tuple.Pair<PropertyDescriptor,org.springframework.beans.factory.config.BeanDefinition>> propertyTracker, org.springframework.beans.BeanWrapper base, org.springframework.beans.factory.support.RootBeanDefinition mbd)
      Constructor.
      Parameters:
      propertyTracker - Map that tracks
      base - Delegated BeanWrapper
      mbd - Root definition
  • Method Details

    • getAutoGrowCollectionLimit

      public int getAutoGrowCollectionLimit()
      Specified by:
      getAutoGrowCollectionLimit in interface org.springframework.beans.BeanWrapper
    • setAutoGrowCollectionLimit

      public void setAutoGrowCollectionLimit(int autoGrowCollectionLimit)
      Specified by:
      setAutoGrowCollectionLimit in interface org.springframework.beans.BeanWrapper
    • getWrappedInstance

      public Object getWrappedInstance()
      Specified by:
      getWrappedInstance in interface org.springframework.beans.BeanWrapper
    • getWrappedClass

      public Class<?> getWrappedClass()
      Specified by:
      getWrappedClass in interface org.springframework.beans.BeanWrapper
    • getPropertyDescriptors

      public PropertyDescriptor[] getPropertyDescriptors()
      Specified by:
      getPropertyDescriptors in interface org.springframework.beans.BeanWrapper
    • getPropertyDescriptor

      public PropertyDescriptor getPropertyDescriptor(String propertyName) throws org.springframework.beans.InvalidPropertyException
      Specified by:
      getPropertyDescriptor in interface org.springframework.beans.BeanWrapper
      Throws:
      org.springframework.beans.InvalidPropertyException
    • getConversionService

      @Nullable public org.springframework.core.convert.ConversionService getConversionService()
      Specified by:
      getConversionService in interface org.springframework.beans.ConfigurablePropertyAccessor
    • setConversionService

      public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
      Specified by:
      setConversionService in interface org.springframework.beans.ConfigurablePropertyAccessor
    • isExtractOldValueForEditor

      public boolean isExtractOldValueForEditor()
      Specified by:
      isExtractOldValueForEditor in interface org.springframework.beans.ConfigurablePropertyAccessor
    • setExtractOldValueForEditor

      public void setExtractOldValueForEditor(boolean extractOldValueForEditor)
      Specified by:
      setExtractOldValueForEditor in interface org.springframework.beans.ConfigurablePropertyAccessor
    • isAutoGrowNestedPaths

      public boolean isAutoGrowNestedPaths()
      Specified by:
      isAutoGrowNestedPaths in interface org.springframework.beans.ConfigurablePropertyAccessor
    • setAutoGrowNestedPaths

      public void setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
      Specified by:
      setAutoGrowNestedPaths in interface org.springframework.beans.ConfigurablePropertyAccessor
    • isReadableProperty

      public boolean isReadableProperty(String propertyName)
      Specified by:
      isReadableProperty in interface org.springframework.beans.PropertyAccessor
    • isWritableProperty

      public boolean isWritableProperty(String propertyName)
      Specified by:
      isWritableProperty in interface org.springframework.beans.PropertyAccessor
    • getPropertyType

      @Nullable public Class<?> getPropertyType(String propertyName) throws org.springframework.beans.BeansException
      Specified by:
      getPropertyType in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • getPropertyTypeDescriptor

      @Nullable public org.springframework.core.convert.TypeDescriptor getPropertyTypeDescriptor(String propertyName) throws org.springframework.beans.BeansException
      Specified by:
      getPropertyTypeDescriptor in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • getPropertyValue

      @Nullable public Object getPropertyValue(String propertyName) throws org.springframework.beans.BeansException
      Specified by:
      getPropertyValue in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • setPropertyValue

      public void setPropertyValue(String propertyName, Object value) throws org.springframework.beans.BeansException
      Specified by:
      setPropertyValue in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • setPropertyValue

      public void setPropertyValue(org.springframework.beans.PropertyValue pv) throws org.springframework.beans.BeansException
      Specified by:
      setPropertyValue in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • setPropertyValues

      public void setPropertyValues(Map<?,?> map) throws org.springframework.beans.BeansException
      Specified by:
      setPropertyValues in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • setPropertyValues

      public void setPropertyValues(org.springframework.beans.PropertyValues pvs) throws org.springframework.beans.BeansException
      Specified by:
      setPropertyValues in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • setPropertyValues

      public void setPropertyValues(org.springframework.beans.PropertyValues pvs, boolean ignoreUnknown) throws org.springframework.beans.BeansException
      Specified by:
      setPropertyValues in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • setPropertyValues

      public void setPropertyValues(org.springframework.beans.PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid) throws org.springframework.beans.BeansException
      Specified by:
      setPropertyValues in interface org.springframework.beans.PropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • registerCustomEditor

      public void registerCustomEditor(Class<?> requiredType, PropertyEditor propertyEditor)
      Specified by:
      registerCustomEditor in interface org.springframework.beans.PropertyEditorRegistry
    • registerCustomEditor

      public void registerCustomEditor(Class<?> requiredType, String propertyPath, PropertyEditor propertyEditor)
      Specified by:
      registerCustomEditor in interface org.springframework.beans.PropertyEditorRegistry
    • findCustomEditor

      @Nullable public PropertyEditor findCustomEditor(Class<?> requiredType, String propertyPath)
      Specified by:
      findCustomEditor in interface org.springframework.beans.PropertyEditorRegistry
    • convertIfNecessary

      @Nullable public <T> T convertIfNecessary(Object value, Class<T> requiredType) throws org.springframework.beans.TypeMismatchException
      Specified by:
      convertIfNecessary in interface org.springframework.beans.TypeConverter
      Throws:
      org.springframework.beans.TypeMismatchException
    • convertIfNecessary

      @Nullable public <T> T convertIfNecessary(Object value, Class<T> requiredType, org.springframework.core.MethodParameter methodParam) throws org.springframework.beans.TypeMismatchException
      Specified by:
      convertIfNecessary in interface org.springframework.beans.TypeConverter
      Throws:
      org.springframework.beans.TypeMismatchException
    • convertIfNecessary

      @Nullable public <T> T convertIfNecessary(Object value, Class<T> requiredType, Field field) throws org.springframework.beans.TypeMismatchException
      Specified by:
      convertIfNecessary in interface org.springframework.beans.TypeConverter
      Throws:
      org.springframework.beans.TypeMismatchException
    • convertIfNecessary

      @Nullable public <T> T convertIfNecessary(Object value, Class<T> requiredType, org.springframework.core.convert.TypeDescriptor typeDescriptor) throws org.springframework.beans.TypeMismatchException
      Specified by:
      convertIfNecessary in interface org.springframework.beans.TypeConverter
      Throws:
      org.springframework.beans.TypeMismatchException