public final class ClassDefining
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ClassDefining.ClassDefinerHolder |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CLASS_DEFINING_UNSUPPORTED |
private static java.util.logging.Logger |
logger |
Modifier | Constructor and Description |
---|---|
private |
ClassDefining() |
Modifier and Type | Method and Description |
---|---|
(package private) static ClassDefiner |
bindClassDefiner()
Binds the preferred
ClassDefiner instance. |
static boolean |
canDowncastToProxy(java.lang.Class<?> hostClass)
Returns true if it's possible to downcast to proxies defined from the given host.
|
static boolean |
canLoadProxyByName(java.lang.Class<?> hostClass)
Returns true if it's possible to load by name proxies defined from the given host.
|
static java.lang.Class<?> |
define(java.lang.Class<?> hostClass,
byte[] bytecode)
Defines a new class relative to the host.
|
static boolean |
hasPackageAccess()
Returns true if the current class definer allows access to package-private members.
|
private static final java.util.logging.Logger logger
private static final java.lang.String CLASS_DEFINING_UNSUPPORTED
public static java.lang.Class<?> define(java.lang.Class<?> hostClass, byte[] bytecode) throws java.lang.Exception
java.lang.Exception
public static boolean hasPackageAccess()
public static boolean canLoadProxyByName(java.lang.Class<?> hostClass)
public static boolean canDowncastToProxy(java.lang.Class<?> hostClass)
static ClassDefiner bindClassDefiner()
ClassDefiner
instance.