public class ClassLoaderClassCloner extends Object implements ClassCloner
IDENTITY
Constructor and Description |
---|
ClassLoaderClassCloner(ClassLoader destClassLoader)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
clone(Class<?> original)
Clone the given class.
|
Class<?> |
cloneProxy(Class<?> proxyClass)
Clone the given reflection proxy class.
|
public ClassLoaderClassCloner(ClassLoader destClassLoader)
destClassLoader
- the class loader to usepublic Class<?> clone(Class<?> original) throws IOException, ClassNotFoundException
clone
in interface ClassCloner
original
- the class to cloneIOException
- if cloning fails due to a serialization problemClassNotFoundException
- if cloning fails due to an unavailable classpublic Class<?> cloneProxy(Class<?> proxyClass) throws IOException, ClassNotFoundException
cloneProxy
in interface ClassCloner
proxyClass
- the proxy class to cloneIOException
- if cloning fails due to a serialization problemClassNotFoundException
- if cloning fails due to an unavailable classCopyright © 2019 JBoss by Red Hat. All rights reserved.