public class Unsafe extends Object
| Constructor and Description |
|---|
Unsafe() |
| Modifier and Type | Method and Description |
|---|---|
<T> Class<T> |
defineAndLoadClass(ClassLoader classLoader,
String proxyName,
byte[] proxyBytes)
The 'defineClass' method on the ClassLoader is protected, thus we need to invoke it via reflection.
|
<T> T |
unsafeNewInstance(Class<T> clazz) |
public <T> Class<T> defineAndLoadClass(ClassLoader classLoader, String proxyName, byte[] proxyBytes) throws ProxyGenerationException
ProxyGenerationExceptionpublic <T> T unsafeNewInstance(Class<T> clazz)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.