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 ClassInjectorAgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer.classInjectorThe 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 ClassInjectorModifierConstructorDescriptionprotectedInjectingInitializer(TypeDescription instrumentedType, Set<TypeDescription> auxiliaryTypes, ClassFileLocator classFileLocator, 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 classAn abstract base implementation of a class injector.static classA class injector using aInstrumentationto append to either the boot classpath or the system class path.static classA class injector using JNA to invoke JNI's define class utility for defining a class.static classA class injector that uses ajava.lang.invoke.MethodHandles$Lookupobject for defining a class.static classA class injector that uses reflective method calls.static classA class injector that usessun.misc.Unsafeorjdk.internal.misc.Unsafeto inject classes.Fields in net.bytebuddy.dynamic.loading declared as ClassInjectorModifier and TypeFieldDescriptionprivate final ClassInjectorClassLoadingStrategy.UsingLookup.classInjectorThe 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 ClassInjectorClassInjector.UsingInstrumentation.of(File folder, ClassInjector.UsingInstrumentation.Target target, Instrumentation instrumentation) Creates an instrumentation-based class injector.static ClassInjectorClassInjector.UsingJna.ofBootLoader()Returns an JNA class injector for the boot class loader.static ClassInjectorClassInjector.UsingUnsafe.ofBootLoader()Returns an unsafe class injector for the boot class loader.static ClassInjectorClassInjector.UsingJna.ofPlatformLoader()Returns an JNA class injector for the platform class loader.static ClassInjectorClassInjector.UsingUnsafe.ofPlatformLoader()Returns an unsafe class injector for the platform class loader.static ClassInjectorClassInjector.UsingReflection.ofSystemClassLoader()Creates a class injector for the system class loader.static ClassInjectorClassInjector.UsingJna.ofSystemLoader()Returns an JNA class injector for the system class loader.static ClassInjectorClassInjector.UsingUnsafe.ofSystemLoader()Returns an unsafe class injector for the system class loader.Constructors in net.bytebuddy.dynamic.loading with parameters of type ClassInjectorModifierConstructorDescriptionprotectedUsingLookup(ClassInjector classInjector) Creates a new class loading strategy that uses a lookup type.