Uses of Interface
net.bytebuddy.dynamic.loading.ClassInjector
Packages that use ClassInjector
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
This package contains classes that are responsible for class loading of classes that are represented by
byte
arrays.-
Uses of ClassInjector in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as ClassInjectorModifier and TypeFieldDescriptionprivate final ClassInjector
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer.classInjector
The class injector to use.Methods in net.bytebuddy.agent.builder that return ClassInjectorModifier and TypeMethodDescriptionAgentBuilder.InjectionStrategy.Disabled.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.AgentBuilder.InjectionStrategy.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.AgentBuilder.InjectionStrategy.UsingInstrumentation.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.AgentBuilder.InjectionStrategy.UsingJna.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.AgentBuilder.InjectionStrategy.UsingReflection.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.AgentBuilder.InjectionStrategy.UsingUnsafe.resolve
(ClassLoader classLoader, ProtectionDomain protectionDomain) Resolves the class injector to use for a given class loader and protection domain.Constructors in net.bytebuddy.agent.builder with parameters of type ClassInjectorModifierConstructorDescriptionprotected
InjectingInitializer
(TypeDescription instrumentedType, Map<TypeDescription, byte[]> rawAuxiliaryTypes, Map<TypeDescription, LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector) Creates a new injection initializer. -
Uses of ClassInjector in net.bytebuddy.dynamic.loading
Classes in net.bytebuddy.dynamic.loading that implement ClassInjectorModifier and TypeClassDescriptionstatic class
An abstract base implementation of a class injector.static class
A class injector using aInstrumentation
to append to either the boot classpath or the system class path.static class
A class injector using JNA to invoke JNI's define class utility for defining a class.static class
A class injector that uses ajava.lang.invoke.MethodHandles$Lookup
object for defining a class.static class
A class injector that uses reflective method calls.static class
A class injector that usessun.misc.Unsafe
orjdk.internal.misc.Unsafe
to inject classes.Fields in net.bytebuddy.dynamic.loading declared as ClassInjectorModifier and TypeFieldDescriptionprivate final ClassInjector
ClassLoadingStrategy.UsingLookup.classInjector
The class injector to use.Methods in net.bytebuddy.dynamic.loading that return ClassInjectorModifier and TypeMethodDescriptionClassInjector.UsingUnsafe.Factory.make
(ClassLoader classLoader) Creates a new class injector for the given class loader without aProtectionDomain
.ClassInjector.UsingUnsafe.Factory.make
(ClassLoader classLoader, ProtectionDomain protectionDomain) Creates a new class injector for the given class loader and protection domain.ClassReloadingStrategy.BootstrapInjection.Disabled.make
(Instrumentation instrumentation) Creates a class injector to use.ClassReloadingStrategy.BootstrapInjection.Enabled.make
(Instrumentation instrumentation) Creates a class injector to use.ClassReloadingStrategy.BootstrapInjection.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.UsingJna.ofBootLoader()
Returns an JNA class injector for the boot class loader.static ClassInjector
ClassInjector.UsingUnsafe.ofBootLoader()
Returns an unsafe class injector for the boot class loader.static ClassInjector
ClassInjector.UsingJna.ofPlatformLoader()
Returns an JNA class injector for the platform 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.UsingJna.ofSystemLoader()
Returns an JNA class injector for the system class loader.static ClassInjector
ClassInjector.UsingUnsafe.ofSystemLoader()
Returns an unsafe class injector for the system class loader.Constructors in net.bytebuddy.dynamic.loading with parameters of type ClassInjectorModifierConstructorDescriptionprotected
UsingLookup
(ClassInjector classInjector) Creates a new class loading strategy that uses a lookup type.