org.springframework.beans

Interface BeanWrapper

    • Method Detail

      • setAutoGrowCollectionLimit

        void setAutoGrowCollectionLimit(int autoGrowCollectionLimit)
        Specify a limit for array and collection auto-growing.

        Default is unlimited on a plain BeanWrapper.

        Since:
        4.1
      • getAutoGrowCollectionLimit

        int getAutoGrowCollectionLimit()
        Return the limit for array and collection auto-growing.
        Since:
        4.1
      • getWrappedInstance

        java.lang.Object getWrappedInstance()
        Return the bean instance wrapped by this object.
      • getWrappedClass

        java.lang.Class<?> getWrappedClass()
        Return the type of the wrapped bean instance.
      • getPropertyDescriptors

        java.beans.PropertyDescriptor[] getPropertyDescriptors()
        Obtain the PropertyDescriptors for the wrapped object (as determined by standard JavaBeans introspection).
        Returns:
        the PropertyDescriptors for the wrapped object
      • getPropertyDescriptor

        java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
                                                     throws InvalidPropertyException
        Obtain the property descriptor for a specific property of the wrapped object.
        Parameters:
        propertyName - the property to obtain the descriptor for (may be a nested path, but no indexed/mapped property)
        Returns:
        the property descriptor for the specified property
        Throws:
        InvalidPropertyException - if there is no such property