JBoss Marshalling 1.3.0.CR9

org.jboss.marshalling.cloner
Interface ClassCloner

All Known Implementing Classes:
ClassLoaderClassCloner

public interface ClassCloner

A cloner for class types. Used (for example) to load an equivalent class from an alternate classloader.


Field Summary
static ClassCloner IDENTITY
          A class cloner which just returns the class it is given.
 
Method Summary
 Class<?> clone(Class<?> original)
           
 Class<?> cloneProxy(Class<?> proxyClass)
           
 

Field Detail

IDENTITY

static final ClassCloner IDENTITY
A class cloner which just returns the class it is given. This cloner can be used in cases where an object must be deep-cloned within the same class loader.

Method Detail

clone

Class<?> clone(Class<?> original)
               throws IOException,
                      ClassNotFoundException
Throws:
IOException
ClassNotFoundException

cloneProxy

Class<?> cloneProxy(Class<?> proxyClass)
                    throws IOException,
                           ClassNotFoundException
Throws:
IOException
ClassNotFoundException

JBoss Marshalling 1.3.0.CR9

Copyright © 2011 JBoss, a division of Red Hat, Inc.