org.sapia.ubik.rmi.server.transport
Class ClassDescriptor

java.lang.Object
  extended by org.sapia.ubik.rmi.server.transport.ClassDescriptor
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ClassDescriptor
extends java.lang.Object
implements java.io.Externalizable

Encapsulates a class name and creates a Class instance using that name, from a given ClassLoader. Used to transport class info over the wire, without incurring ClassNotFoundExceptions.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
Serialized Form

Constructor Summary
ClassDescriptor()
           
ClassDescriptor(java.lang.Class type)
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 java.lang.Class resolve(java.lang.ClassLoader loader)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDescriptor

public ClassDescriptor()

ClassDescriptor

public ClassDescriptor(java.lang.Class type)
Method Detail

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

resolve

public java.lang.Class resolve(java.lang.ClassLoader loader)
                        throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException


Copyright © 2010 Sapia OSS. All Rights Reserved.