|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object flex.messaging.io.AbstractProxy flex.messaging.io.BeanProxy org.springframework.flex.core.io.SpringPropertyProxy
public class SpringPropertyProxy
Spring ConversionService
-aware PropertyProxy
that seeks to find an appropriate converter for
a given bean property during AMF serialization and deserialization.
Uses Spring's PropertyAccessor
interface for all property access, allowing for optional direct field access
on the objects being serialized/deserialized.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class flex.messaging.io.BeanProxy |
---|
BeanProxy.BeanProperty, BeanProxy.PropertyDescriptorCacheEntry |
Field Summary | |
---|---|
protected Class<?> |
beanType
|
protected ConversionService |
conversionService
|
protected boolean |
useDirectFieldAccess
|
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 |
Method Summary | |
---|---|
Class<?> |
getBeanType()
The type for which this PropertyProxy is registered. |
Object |
getInstanceToSerialize(Object instance)
Delegates to the configured ConversionService to potentially convert the instance to the registered bean type. |
List<String> |
getPropertyNames(Object instance)
|
Class<?> |
getType(Object instance,
String propertyName)
|
Object |
getValue(Object instance,
String propertyName)
Delegates to the configured ConversionService to potentially convert the current value to the actual type of the property. |
boolean |
isWriteOnly(Object instance,
String propertyName)
|
static SpringPropertyProxy |
proxyFor(Class<?> beanType,
boolean useDirectFieldAccess,
ConversionService conversionService)
Factory method for creating correctly configured Spring property proxy instances. |
void |
setValue(Object instance,
String propertyName,
Object value)
Delegates to the configured ConversionService to potentially convert the value to the actual type of the property. |
Methods inherited from class flex.messaging.io.BeanProxy |
---|
addIgnoreProperty, clear, clone, getAlias, getBeanProperties, getBeanProperty, getBeanValue, getClassName, ignorePropertyErrors, isPropertyIgnored, isPublicAccessor, isPublicField, 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 |
Field Detail |
---|
protected final ConversionService conversionService
protected final Class<?> beanType
protected final boolean useDirectFieldAccess
Method Detail |
---|
public static SpringPropertyProxy proxyFor(Class<?> beanType, boolean useDirectFieldAccess, ConversionService conversionService)
beanType
- the type being introspecteduseDirectFieldAccess
- whether to access fields directlyconversionService
- the conversion service to use for property type conversion
public Class<?> getBeanType()
PropertyProxy
is registered.
public Object getInstanceToSerialize(Object instance)
ConversionService
to potentially convert the instance to the registered bean type.
getInstanceToSerialize
in interface PropertyProxy
getInstanceToSerialize
in class AbstractProxy
public List<String> getPropertyNames(Object instance)
getPropertyNames
in interface PropertyProxy
getPropertyNames
in class BeanProxy
public Class<?> getType(Object instance, String propertyName)
getType
in interface PropertyProxy
getType
in class BeanProxy
public Object getValue(Object instance, String propertyName)
ConversionService
to potentially convert the current value to the actual type of the property.
getValue
in interface PropertyProxy
getValue
in class BeanProxy
public boolean isWriteOnly(Object instance, String propertyName)
isWriteOnly
in class BeanProxy
public void setValue(Object instance, String propertyName, Object value)
ConversionService
to potentially convert the value to the actual type of the property.
setValue
in interface PropertyProxy
setValue
in class BeanProxy
|
Spring BlazeDS Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |