Package org.jboss.marshalling.cloner
Class ClassLoaderClassCloner
java.lang.Object
org.jboss.marshalling.cloner.ClassLoaderClassCloner
- All Implemented Interfaces:
ClassCloner
A class cloner which uses the given class loader to resolve classes.
-
Field Summary
FieldsFields inherited from interface org.jboss.marshalling.cloner.ClassCloner
IDENTITY
-
Constructor Summary
ConstructorsConstructorDescriptionClassLoaderClassCloner
(ClassLoader destClassLoader) Construct a new instance. -
Method Summary
-
Field Details
-
destClassLoader
-
-
Constructor Details
-
ClassLoaderClassCloner
Construct a new instance.- Parameters:
destClassLoader
- the class loader to use
-
-
Method Details
-
clone
Clone the given class.- Specified by:
clone
in interfaceClassCloner
- Parameters:
original
- the class to clone- Returns:
- the cloned class
- Throws:
IOException
- if cloning fails due to a serialization problemClassNotFoundException
- if cloning fails due to an unavailable class
-
cloneProxy
Clone the given reflection proxy class.- Specified by:
cloneProxy
in interfaceClassCloner
- Parameters:
proxyClass
- the proxy class to clone- Returns:
- the cloned proxy class
- Throws:
IOException
- if cloning fails due to a serialization problemClassNotFoundException
- if cloning fails due to an unavailable class
-