org.apache.catalina.tribes.io

Class ReplicationStream

public final class ReplicationStream extends ObjectInputStream

Custom subclass of 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) $

Author: Craig R. McClanahan Bip Thelin Filip Hanik

Constructor Summary
ReplicationStream(InputStream stream, ClassLoader[] classLoaders)
Construct a new instance of CustomObjectInputStream
Method Summary
voidclose()
ClassfindExternalClass(String name)
ClassfindReplicationClass(String name)
ClassresolveClass(ObjectStreamClass classDesc)
Load the local class equivalent of the specified stream class description, by using the class loader assigned to this Context.
ClassresolveClass(String name)

Constructor Detail

ReplicationStream

public ReplicationStream(InputStream stream, ClassLoader[] classLoaders)
Construct a new instance of CustomObjectInputStream

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

Method Detail

close

public void close()

findExternalClass

public Class findExternalClass(String name)

findReplicationClass

public Class findReplicationClass(String name)

resolveClass

public Class resolveClass(ObjectStreamClass classDesc)
Load the local class equivalent of the specified stream class description, by using the class loader assigned to this Context.

Parameters: classDesc Class description from the input stream

Throws: ClassNotFoundException if this class cannot be found IOException if an input/output error occurs

resolveClass

public Class resolveClass(String name)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.