public interface ClassCloner
Modifier and Type | Field and Description |
---|---|
static ClassCloner |
IDENTITY
A class cloner which just returns the class it is given.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
clone(Class<?> original)
Clone the given class.
|
Class<?> |
cloneProxy(Class<?> proxyClass)
Clone the given reflection proxy class.
|
static final ClassCloner IDENTITY
Class<?> clone(Class<?> original) throws IOException, ClassNotFoundException
original
- the class to cloneIOException
- if cloning fails due to a serialization problemClassNotFoundException
- if cloning fails due to an unavailable classClass<?> cloneProxy(Class<?> proxyClass) throws IOException, ClassNotFoundException
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.