|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.io.AbstractProxy
public abstract class AbstractProxy
Simple abstract implementation of PropertyProxy's common properties. Specific sub-classes need to provide the full implementation focusing on the retrieval of the instance traits or "list of properties" and a specific value for a given property name.
PropertyProxy,
Serialized Form| Method Summary | |
|---|---|
Object |
clone()
Returns a copy of the PropertyProxy so that it can be used as a template without modifying/creating global references to instances, descriptors etc. |
Object |
createInstance(String className)
Creates a new instance for the given className. |
static Object |
createInstanceFromClassName(String className)
A utility method which creates an instance from a given class name. |
String |
getAlias()
The class name alias for the default instance. |
static Class |
getClassFromClassName(String className)
A utility method which returns the Class from the given Class name using the current type context's class loader. |
Object |
getDefaultInstance()
The default instance managed by this PropertyProxy. |
SerializationDescriptor |
getDescriptor()
A serialization descriptor that provides overrides to the default behavior for selecting properties for serialization. |
boolean |
getIncludeReadOnly()
Determines whether read only properties from the instance should be included during default serialization. |
Object |
getInstanceToSerialize(Object instance)
Returns the instance to serialize in place of the supplied instance. |
List |
getPropertyNames()
The List of property names as Strings that make up the traits of the default instance. |
SerializationContext |
getSerializationContext()
The context holds settings that govern serialization behavior. |
Class |
getType(String propertyName)
Looks up the Class type of the property by name on the default instance. |
Object |
getValue(String propertyName)
Looks up the value of the property by name from the default instance. |
Object |
instanceComplete(Object instance)
This is called after the serialization finishes. |
boolean |
isDynamic()
The trait setting "dynamic" is a client-only concept for types that allow for arbitrary public properties to be defined at runtime. |
boolean |
isExternalizable()
Specifies whether the default instance manages its own serialization through the Externalizable interface. |
boolean |
isExternalizable(Object instance)
Specifies whether the given instance manages its own serialization through the Externalizable interface. |
void |
setAlias(String value)
Allows an alias to be set for the instance type. |
void |
setDefaultInstance(Object instance)
Sets the default instance managed by this PropertyProxy. |
void |
setDescriptor(SerializationDescriptor descriptor)
Allows non-default inclusion/exclusion of properties for serialization. |
void |
setDynamic(boolean value)
Dynamic is a client-only concept for types that allow for arbitrary public properties to be defined at runtime. |
void |
setExternalizable(boolean value)
Specifies whether the given instance manages its own serialization through the Externalizable interface. |
void |
setIncludeReadOnly(boolean value)
If set to true, read only properties will be included during default serialization. |
void |
setSerializationContext(SerializationContext value)
Sets the context for serialization behavior. |
void |
setValue(String propertyName,
Object value)
Updates the value of a propery by name for the default instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface flex.messaging.io.PropertyProxy |
|---|
getAlias, getPropertyNames, getType, getValue, setValue |
| Method Detail |
|---|
public Object getDefaultInstance()
PropertyProxy
getDefaultInstance in interface PropertyProxypublic void setDefaultInstance(Object instance)
PropertyProxy
setDefaultInstance in interface PropertyProxyinstance - The default instance.public static Class getClassFromClassName(String className)
public static Object createInstanceFromClassName(String className)
public Object createInstance(String className)
PropertyProxy
createInstance in interface PropertyProxypublic List getPropertyNames()
PropertyProxy
getPropertyNames in interface PropertyProxypublic Class getType(String propertyName)
PropertyProxy
getType in interface PropertyProxypropertyName - The name of the property.
public Object getValue(String propertyName)
PropertyProxy
getValue in interface PropertyProxypropertyName - The name of the property.
public void setValue(String propertyName,
Object value)
PropertyProxy
setValue in interface PropertyProxypublic void setAlias(String value)
PropertyProxy
setAlias in interface PropertyProxyvalue - The class name alias.public String getAlias()
PropertyProxy
getAlias in interface PropertyProxypublic void setDynamic(boolean value)
PropertyProxy
setDynamic in interface PropertyProxyvalue - Whether the client type is expected to be dynamic. This setting
is currently not used.public boolean isDynamic()
PropertyProxy
isDynamic in interface PropertyProxypublic boolean isExternalizable()
PropertyProxy
isExternalizable in interface PropertyProxypublic void setExternalizable(boolean value)
PropertyProxy
setExternalizable in interface PropertyProxyvalue - if set to true the instance must implement java.io.Externalizable, otherwise
if set to false the proxied type can avoid external serialization
for an otherwise Externalizable type.public boolean isExternalizable(Object instance)
PropertyProxy
isExternalizable in interface PropertyProxypublic SerializationContext getSerializationContext()
PropertyProxy
getSerializationContext in interface PropertyProxypublic void setSerializationContext(SerializationContext value)
PropertyProxy
setSerializationContext in interface PropertyProxypublic void setIncludeReadOnly(boolean value)
PropertyProxy
setIncludeReadOnly in interface PropertyProxyvalue - whether read only properties should be included.public boolean getIncludeReadOnly()
PropertyProxy
getIncludeReadOnly in interface PropertyProxypublic SerializationDescriptor getDescriptor()
PropertyProxy
getDescriptor in interface PropertyProxypublic void setDescriptor(SerializationDescriptor descriptor)
PropertyProxy
setDescriptor in interface PropertyProxydescriptor - The descriptor to customize property selection for serialization.public Object instanceComplete(Object instance)
instanceComplete in interface PropertyProxyinstance - the instance being deserialized (previously returned from a
createInstance call)
public Object getInstanceToSerialize(Object instance)
getInstanceToSerialize in interface PropertyProxyinstance - the instance encountered during AMF serialization
public Object clone()
PropertyProxy
clone in interface PropertyProxyclone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/AbstractProxy.html