org.riotfamily.common.beans
Class ProtectedBeanWrapper

java.lang.Object
  extended by org.springframework.beans.PropertyEditorRegistrySupport
      extended by org.springframework.beans.AbstractPropertyAccessor
          extended by org.springframework.beans.BeanWrapperImpl
              extended by org.riotfamily.common.beans.ProtectedBeanWrapper
All Implemented Interfaces:
ObjectWrapper, BeanWrapper, ConfigurablePropertyAccessor, PropertyAccessor, PropertyEditorRegistry, TypeConverter

public class ProtectedBeanWrapper
extends BeanWrapperImpl
implements ObjectWrapper

BeanWrapper that that provides access to non-public setters and getters.

Since:
6.4
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from interface org.springframework.beans.PropertyAccessor
NESTED_PROPERTY_SEPARATOR, NESTED_PROPERTY_SEPARATOR_CHAR, PROPERTY_KEY_PREFIX, PROPERTY_KEY_PREFIX_CHAR, PROPERTY_KEY_SUFFIX, PROPERTY_KEY_SUFFIX_CHAR
 
Constructor Summary
ProtectedBeanWrapper()
           
ProtectedBeanWrapper(Class<?> clazz)
           
ProtectedBeanWrapper(Object object)
           
 
Method Summary
 Object getObject()
           
 Class<?> getObjectClass()
           
protected  PropertyDescriptor getPropertyDescriptorInternal(String name)
           
 void setObject(Object object)
           
 
Methods inherited from class org.springframework.beans.BeanWrapperImpl
convertForProperty, convertIfNecessary, doTypeConversionIfNecessary, getBeanWrapperForPropertyPath, getNestedPath, getPropertyDescriptor, getPropertyDescriptors, getPropertyType, getPropertyValue, getRootClass, getRootInstance, getWrappedClass, getWrappedInstance, isReadableProperty, isWritableProperty, newNestedBeanWrapper, setIntrospectionClass, setPropertyValue, setPropertyValue, setWrappedInstance, setWrappedInstance, toString
 
Methods inherited from class org.springframework.beans.AbstractPropertyAccessor
convertIfNecessary, isExtractOldValueForEditor, setExtractOldValueForEditor, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, isSharedEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, registerSharedEditor, useConfigValueEditors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.ConfigurablePropertyAccessor
isExtractOldValueForEditor, setExtractOldValueForEditor
 
Methods inherited from interface org.springframework.beans.PropertyAccessor
getPropertyType, getPropertyValue, isReadableProperty, isWritableProperty, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from interface org.springframework.beans.PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditor
 
Methods inherited from interface org.springframework.beans.TypeConverter
convertIfNecessary, convertIfNecessary
 

Constructor Detail

ProtectedBeanWrapper

public ProtectedBeanWrapper()

ProtectedBeanWrapper

public ProtectedBeanWrapper(Class<?> clazz)

ProtectedBeanWrapper

public ProtectedBeanWrapper(Object object)
Method Detail

setObject

public void setObject(Object object)
Specified by:
setObject in interface ObjectWrapper

getObject

public Object getObject()
Specified by:
getObject in interface ObjectWrapper

getObjectClass

public Class<?> getObjectClass()
Specified by:
getObjectClass in interface ObjectWrapper

getPropertyDescriptorInternal

protected PropertyDescriptor getPropertyDescriptorInternal(String name)
                                                    throws BeansException
Overrides:
getPropertyDescriptorInternal in class BeanWrapperImpl
Throws:
BeansException