public interface DefiningClassService
| Modifier and Type | Method and Description |
|---|---|
<T> Class<T> |
defineAndLoad(String name,
byte[] bytecode,
Class<T> proxiedClass)
Register the proxy class from its bytecode.
|
ClassLoader |
getProxyClassLoader(Class<?> forClass)
Returns the classloader to use to define the given class.
|
ClassLoader getProxyClassLoader(Class<?> forClass)
forClass - the proxied class<T> Class<T> defineAndLoad(String name, byte[] bytecode, Class<T> proxiedClass)
T - type of the class to proxyname - the proxy namebytecode - the bytecode to "define"proxiedClass - the original classCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.