|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.io.TypeMarshallingContext
public class TypeMarshallingContext
A simple context to hold type marshalling specific settings.
| Constructor Summary | |
|---|---|
TypeMarshallingContext()
Constructs a default type marshalling context. |
|
| Method Summary | |
|---|---|
static void |
clearThreadLocalObjects()
Clears out the thread local state after the request completes. |
ClassLoader |
getClassLoader()
Returns the custom ClassLoader for this type marshalling session, or defaults to the current MessageBroker's ClassLoader if none has been set. |
IdentityHashMap |
getKnownObjects()
A map of known objects already encountered in this type marshalling session. |
static String |
getType(Object obj)
A utility method to determine whether an anonymous type specifies a strong type name, such as ASObject.getType() or the legacy Flash Remoting convention of using a _remoteClass property. |
static TypeMarshaller |
getTypeMarshaller()
|
static TypeMarshallingContext |
getTypeMarshallingContext()
|
void |
reset()
Resets the list of known objects. |
void |
setClassLoader(ClassLoader loader)
Sets a custom classloader for this type marshalling session that will be used to create new instances of strongly typed objects. |
void |
setKnownObjects(IdentityHashMap knownObjects)
Sets the list of the objects already encountered for this type marshalling session. |
static void |
setTypeMarshaller(TypeMarshaller marshaller)
Establishes a TypeMarshallingContext for the current thread. |
static void |
setTypeMarshallingContext(TypeMarshallingContext context)
Establishes a TypeMarshallingContext for the current thread. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeMarshallingContext()
| Method Detail |
|---|
public static void setTypeMarshallingContext(TypeMarshallingContext context)
context - The current TypeMarshallingContext.public static TypeMarshallingContext getTypeMarshallingContext()
public static void setTypeMarshaller(TypeMarshaller marshaller)
marshaller - The current TypeMarshaller.public static TypeMarshaller getTypeMarshaller()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader loader)
public IdentityHashMap getKnownObjects()
public void setKnownObjects(IdentityHashMap knownObjects)
public void reset()
public static String getType(Object obj)
public static void clearThreadLocalObjects()
|
||||||||||
| 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/TypeMarshallingContext.html