Spring BlazeDS Integration

org.springframework.flex.core.io
Class SpringPropertyProxy

java.lang.Object
  extended by flex.messaging.io.AbstractProxy
      extended by flex.messaging.io.BeanProxy
          extended by org.springframework.flex.core.io.SpringPropertyProxy
All Implemented Interfaces:
flex.messaging.io.PropertyProxy, Serializable, Cloneable

public class SpringPropertyProxy
extends flex.messaging.io.BeanProxy

Spring ConversionService-aware BeanProxy that seeks to find an appropriate converter for a given bean property during serialization and deserialization.

Author:
Jeremy Grelle
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class flex.messaging.io.BeanProxy
flex.messaging.io.BeanProxy.BeanProperty, flex.messaging.io.BeanProxy.PropertyDescriptorCacheEntry
 
Field Summary
 
Fields inherited from class flex.messaging.io.BeanProxy
beanPropertyCache, cacheProperties, cachePropertiesDescriptors, ignoreProperties, propertyDescriptorCache, propertyNamesCache, stopClass
 
Fields inherited from class flex.messaging.io.AbstractProxy
alias, context, defaultInstance, descriptor, dynamic, externalizable, includeReadOnly, LOG_CATEGORY
 
Constructor Summary
SpringPropertyProxy(Class<?> beanType, boolean useDirectFieldAccess)
           
 
Method Summary
 Class<?> getBeanType()
           
 Object getInstanceToSerialize(Object instance)
           
 List<String> getPropertyNames(Object instance)
           
 Class<?> getType(Object instance, String propertyName)
           
 Object getValue(Object instance, String propertyName)
           
 void setConversionService(ConversionService conversionService)
           
 void setValue(Object instance, String propertyName, Object value)
           
 
Methods inherited from class flex.messaging.io.BeanProxy
addIgnoreProperty, clear, clone, getAlias, getBeanProperties, getBeanProperty, getBeanValue, getClassName, ignorePropertyErrors, isPropertyIgnored, isPublicAccessor, isPublicField, isWriteOnly, logPropertyErrors
 
Methods inherited from class flex.messaging.io.AbstractProxy
createInstance, createInstanceFromClassName, getAlias, getClassFromClassName, getDefaultInstance, getDescriptor, getIncludeReadOnly, getPropertyNames, getSerializationContext, getType, getValue, instanceComplete, isDynamic, isExternalizable, isExternalizable, setAlias, setCloneFieldsFrom, setDefaultInstance, setDescriptor, setDynamic, setExternalizable, setIncludeReadOnly, setSerializationContext, setValue, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringPropertyProxy

public SpringPropertyProxy(Class<?> beanType,
                           boolean useDirectFieldAccess)
Method Detail

getPropertyNames

public List<String> getPropertyNames(Object instance)
Specified by:
getPropertyNames in interface flex.messaging.io.PropertyProxy
Overrides:
getPropertyNames in class flex.messaging.io.BeanProxy

getType

public Class<?> getType(Object instance,
                        String propertyName)
Specified by:
getType in interface flex.messaging.io.PropertyProxy
Overrides:
getType in class flex.messaging.io.BeanProxy

getValue

public Object getValue(Object instance,
                       String propertyName)
Specified by:
getValue in interface flex.messaging.io.PropertyProxy
Overrides:
getValue in class flex.messaging.io.BeanProxy

setValue

public void setValue(Object instance,
                     String propertyName,
                     Object value)
Specified by:
setValue in interface flex.messaging.io.PropertyProxy
Overrides:
setValue in class flex.messaging.io.BeanProxy

setConversionService

public void setConversionService(ConversionService conversionService)

getInstanceToSerialize

public Object getInstanceToSerialize(Object instance)
Specified by:
getInstanceToSerialize in interface flex.messaging.io.PropertyProxy
Overrides:
getInstanceToSerialize in class flex.messaging.io.AbstractProxy

getBeanType

public Class<?> getBeanType()

Spring BlazeDS Integration

Copyright © 2011. All Rights Reserved.