class DynamicClassLoaderMessage
extends java.lang.Object
implements java.io.Serializable
DataSerializationFilter
so
that it includes a NetChannelLocation
referring to the JFTP request channel to service
requests for the class's binary image if it is not held at the receiving end.Modifier and Type | Class and Description |
---|---|
private class |
DynamicClassLoaderMessage.AdvancedInputStreamFactory
Factory for creating instances of
AdvancedObjectInputStream bound to a given
class manager. |
private class |
DynamicClassLoaderMessage.AdvancedObjectInputStream
This allows a custom ClassLoader to be used to resolve the object
being deserialized.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.ClassLoader |
classLoaderToUse
The class loader to use when deserializing the object.
|
private NetChannelLocation |
classSourceChannelLoc
The location of the request channel of the sender's JFTP process.
|
private long |
createTime
Creation timestamp.
|
private SerializedData |
serializedData
The serialized form of the user object being sent.
|
Constructor and Description |
---|
DynamicClassLoaderMessage(java.lang.Object data,
NetChannelLocation classSourceChannelLoc)
Creates a new
DynamicClassLoaderMessage encapsulating the given object. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(ClassManager cm)
Public accessor to deserialize and retrieve the object using the specified
ClassManager . |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the class loader to use when deserializing the object.
|
java.lang.String |
toString()
Diagnostic string identifying the message by timestamp.
|
private long createTime
private transient java.lang.ClassLoader classLoaderToUse
private final NetChannelLocation classSourceChannelLoc
private SerializedData serializedData
public DynamicClassLoaderMessage(java.lang.Object data, NetChannelLocation classSourceChannelLoc) throws java.io.NotSerializableException, java.io.IOException
DynamicClassLoaderMessage
encapsulating the given object.data
- the actual user object being sent.classSourceChannelLoc
- the request channel of the JFTP process.java.io.NotSerializableException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object get(ClassManager cm) throws java.lang.ClassNotFoundException, java.io.IOException
ClassManager
.cm
- the class manager to use.java.lang.ClassNotFoundException
java.io.IOException
public void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- the new class loader.