org.apache.catalina.tribes.io
public final class ReplicationStream extends ObjectInputStream
ObjectInputStream
that loads from the
class loader for this web application. This allows classes defined only
with the web application to be found correctly.
Version: $Revision: 656701 $, $Date: 2008-05-15 17:30:03 +0200 (Thu, 15 May 2008) $
Constructor Summary | |
---|---|
ReplicationStream(InputStream stream, ClassLoader[] classLoaders)
Construct a new instance of CustomObjectInputStream
|
Method Summary | |
---|---|
void | close() |
Class | findExternalClass(String name) |
Class | findReplicationClass(String name) |
Class | resolveClass(ObjectStreamClass classDesc)
Load the local class equivalent of the specified stream class
description, by using the class loader assigned to this Context.
|
Class | resolveClass(String name) |
Parameters: stream The input stream we will read from classLoader The class loader used to instantiate objects
Throws: IOException if an input/output error occurs
Parameters: classDesc Class description from the input stream
Throws: ClassNotFoundException if this class cannot be found IOException if an input/output error occurs