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.
|
net.bytebuddy.dynamic.loading |
This package contains classes that are responsible for class loading of classes that are represented by
byte arrays. |
Modifier and Type | Method and Description |
---|---|
<S extends ClassLoader> |
TypeResolutionStrategy.Resolved.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Passive.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Active.Resolved.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Lazy.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
TypeResolutionStrategy.Disabled.initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
<S extends ClassLoader> |
DynamicType.Unloaded.load(S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Attempts to load this dynamic type including all of its auxiliary types, if any.
|
<S extends ClassLoader> |
DynamicType.Default.Unloaded.load(S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Attempts to load this dynamic type including all of its auxiliary types, if any.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
ClassLoadingStrategy.Configurable<S extends ClassLoader>
A
ClassLoadingStrategy that allows configuring the strategy's behavior. |
Modifier and Type | Class and Description |
---|---|
static class |
ClassLoadingStrategy.Default
This class contains implementations of default class loading strategies.
|
protected static class |
ClassLoadingStrategy.Default.InjectionDispatcher
A class loading strategy which applies a class loader injection while applying a given
ProtectionDomain on class injection. |
protected static class |
ClassLoadingStrategy.Default.WrappingDispatcher
A class loading strategy which creates a wrapping class loader while applying a given
ProtectionDomain on class loading. |
static class |
ClassLoadingStrategy.ForBootstrapInjection
A class loading strategy which allows class injection into the bootstrap class loader if
appropriate.
|
static class |
ClassLoadingStrategy.ForJnaInjection
A class loading strategy that injects a class using JNA via the JNI DefineClass method.
|
static class |
ClassLoadingStrategy.ForUnsafeInjection
A class loading strategy that injects a class using
sun.misc.Unsafe or jdk.internal.misc.Unsafe . |
static class |
ClassLoadingStrategy.UsingLookup
A class loading strategy that uses a
java.lang.invoke.MethodHandles$Lookup instance for defining types. |
class |
ClassReloadingStrategy
The class reloading strategy allows to redefine loaded
Class es. |
static class |
InjectionClassLoader.Strategy
A class loading strategy for adding a type to an injection class loader.
|
Modifier and Type | Method and Description |
---|---|
static ClassLoadingStrategy<ClassLoader> |
ClassLoadingStrategy.UsingLookup.of(Object lookup)
Creates a new class loading strategy that uses a
java.lang.invoke.MethodHandles$Lookup instance. |
static ClassLoadingStrategy<ClassLoader> |
ClassLoadingStrategy.UsingLookup.withFallback(Callable<?> lookup)
Resolves a class loading strategy using a lookup if available on the current JVM.
|
static ClassLoadingStrategy<ClassLoader> |
ClassLoadingStrategy.UsingLookup.withFallback(Callable<?> lookup,
boolean wrapper)
Resolves a class loading strategy using a lookup if available on the current JVM.
|
Copyright © 2014–2024. All rights reserved.