Package | Description |
---|---|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
Modifier and Type | Class and Description |
---|---|
static class |
ClassFileLocator.AgentBased.ClassLoadingDelegate.Default
A default implementation of a class loading delegate.
|
static class |
ClassFileLocator.AgentBased.ClassLoadingDelegate.Explicit
A class loading delegate that allows the location of explicitly registered classes that cannot
be located by a class loader directly.
|
static class |
ClassFileLocator.AgentBased.ClassLoadingDelegate.ForDelegatingClassLoader
A class loading delegate that accounts for a
sun.reflect.DelegatingClassLoader which
cannot load its own classes by name. |
Modifier and Type | Field and Description |
---|---|
private ClassFileLocator.AgentBased.ClassLoadingDelegate |
ClassFileLocator.AgentBased.classLoadingDelegate
The delegate to load a class by its name.
|
private ClassFileLocator.AgentBased.ClassLoadingDelegate |
ClassFileLocator.AgentBased.ClassLoadingDelegate.Explicit.fallbackDelegate
A class loading delegate that is queried for classes that are not registered explicitly.
|
Modifier and Type | Method and Description |
---|---|
static ClassFileLocator.AgentBased.ClassLoadingDelegate |
ClassFileLocator.AgentBased.ClassLoadingDelegate.Explicit.of(java.lang.Class<?> type)
Creates an explicit class loading delegate for the given type.
|
static ClassFileLocator.AgentBased.ClassLoadingDelegate |
ClassFileLocator.AgentBased.ClassLoadingDelegate.Default.of(java.lang.ClassLoader classLoader)
Creates a class loading delegate for the given class loader.
|
Constructor and Description |
---|
AgentBased(java.lang.instrument.Instrumentation instrumentation,
ClassFileLocator.AgentBased.ClassLoadingDelegate classLoadingDelegate)
Creates an agent-based class file locator.
|
Explicit(ClassFileLocator.AgentBased.ClassLoadingDelegate fallbackDelegate,
java.util.Collection<? extends java.lang.Class<?>> types)
Creates a new class loading delegate with a possibility of looking up explicitly
registered classes.
|