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. |
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.
clone
Class<?> clone(Class<?> original)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
cloneProxy
Class<?> cloneProxy(Class<?> proxyClass)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
Copyright © 2011 JBoss, a division of Red Hat, Inc.