Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
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 |
---|---|
ClassInjector |
AgentBuilder.InjectionStrategy.resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
ClassInjector |
AgentBuilder.InjectionStrategy.Disabled.resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
ClassInjector |
AgentBuilder.InjectionStrategy.UsingReflection.resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
ClassInjector |
AgentBuilder.InjectionStrategy.UsingUnsafe.resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
ClassInjector |
AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory.resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
ClassInjector |
AgentBuilder.InjectionStrategy.UsingInstrumentation.resolve(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Resolves the class injector to use for a given class loader and protection domain.
|
Constructor and Description |
---|
InjectingInitializer(TypeDescription instrumentedType,
Map<TypeDescription,byte[]> rawAuxiliaryTypes,
Map<TypeDescription,LoadedTypeInitializer> loadedTypeInitializers,
ClassInjector classInjector)
Creates a new injection initializer.
|
Modifier and Type | Class and Description |
---|---|
static class |
ClassInjector.AbstractBase
An abstract base implementation of a class injector.
|
static class |
ClassInjector.UsingInstrumentation
A class injector using a
Instrumentation to append to either the boot classpath
or the system class path. |
static class |
ClassInjector.UsingLookup
A class injector that uses a
java.lang.invoke.MethodHandles$Lookup object for defining a class. |
static class |
ClassInjector.UsingReflection
A class injector that uses reflective method calls.
|
static class |
ClassInjector.UsingUnsafe
A class injector that uses
sun.misc.Unsafe to inject classes. |
Modifier and Type | Method and Description |
---|---|
ClassInjector |
ClassInjector.UsingUnsafe.Factory.make(ClassLoader classLoader)
Creates a new class injector for the given class loader without a
ProtectionDomain . |
ClassInjector |
ClassInjector.UsingUnsafe.Factory.make(ClassLoader classLoader,
ProtectionDomain protectionDomain)
Creates a new class injector for the given class loader and protection domain.
|
ClassInjector |
ClassReloadingStrategy.BootstrapInjection.make(Instrumentation instrumentation)
Creates a class injector to use.
|
ClassInjector |
ClassReloadingStrategy.BootstrapInjection.Disabled.make(Instrumentation instrumentation)
Creates a class injector to use.
|
ClassInjector |
ClassReloadingStrategy.BootstrapInjection.Enabled.make(Instrumentation instrumentation)
Creates a class injector to use.
|
static ClassInjector |
ClassInjector.UsingInstrumentation.of(File folder,
ClassInjector.UsingInstrumentation.Target target,
Instrumentation instrumentation)
Creates an instrumentation-based class injector.
|
static ClassInjector |
ClassInjector.UsingUnsafe.ofBootLoader()
Returns an unsafe class injector for the boot class loader.
|
static ClassInjector |
ClassInjector.UsingUnsafe.ofPlatformLoader()
Returns an unsafe class injector for the platform class loader.
|
static ClassInjector |
ClassInjector.UsingReflection.ofSystemClassLoader()
Creates a class injector for the system class loader.
|
static ClassInjector |
ClassInjector.UsingUnsafe.ofSystemLoader()
Returns an unsafe class injector for the system class loader.
|
Constructor and Description |
---|
UsingLookup(ClassInjector classInjector)
Creates a new class loading strategy that uses a lookup type.
|
Copyright © 2014–2020. All rights reserved.