ClassDefiner that defines classes using child ClassLoaders.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ChildClassDefiner.
Custom class loader that grants access to defineClass |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ChildClassDefiner. | |
| public Class | define(Class<?> hostClass, byte[] bytecode)
Implements com. |
| pack-priv static <T> T |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| ChildClassDefiner | back to summary |
|---|---|
| pack-priv ChildClassDefiner() | |
| childLoader | back to summary |
|---|---|
| pack-priv static ChildClassDefiner. Creates a child loader for the given host loader | |
| define | back to summary |
|---|---|
| public Class Implements com. Doc from com. Defines a new class relative to the host.
| |
| doPrivileged | back to summary |
|---|---|
| pack-priv static <T> T doPrivileged(PrivilegedAction<T> action) Utility method to remove doPrivileged ambiguity | |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Class |
| ChildLoader | back to summary |
|---|---|
| pack-priv ChildLoader(ClassLoader parent) | |
| ChildLoader | back to summary |
|---|---|
| pack-priv ChildLoader() | |
| defineInChild | back to summary |
|---|---|
| pack-priv Class | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final LoadingCache |
| Access | Constructor and Description |
|---|---|
| private |
| CHILD_LOADER_CACHE | back to summary |
|---|---|
| pack-priv static final LoadingCache<ClassLoader, ChildClassDefiner. | |
| ChildLoaderCacheHolder | back to summary |
|---|---|
| private ChildLoaderCacheHolder() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ChildClassDefiner. |
| Access | Constructor and Description |
|---|---|
| private |
| SYSTEM_CHILD_LOADER | back to summary |
|---|---|
| pack-priv static final ChildClassDefiner. | |
| SystemChildLoaderHolder | back to summary |
|---|---|
| private SystemChildLoaderHolder() | |