Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.Transformation.Simple.Resolution.BootstrapClassLoaderCapableInjectorFactory
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.Transformation.Simple.Resolution.BootstrapClassLoaderCapableInjectorFactory
-
- All Implemented Interfaces:
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory
- Enclosing class:
- AgentBuilder.Default.Transformation.Simple.Resolution
@Enhance protected static class AgentBuilder.Default.Transformation.Simple.Resolution.BootstrapClassLoaderCapableInjectorFactory extends java.lang.Object implements AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory
An injector factory that resolves to a bootstrap class loader injection if this is necessary and enabled.
-
-
Field Summary
Fields Modifier and Type Field Description private AgentBuilder.Default.BootstrapInjectionStrategy
bootstrapInjectionStrategy
The bootstrap injection strategy being used.private java.lang.ClassLoader
classLoader
The class loader for which to create an injection factory.private java.security.ProtectionDomain
protectionDomain
The protection domain of the created classes.
-
Constructor Summary
Constructors Modifier Constructor Description protected
BootstrapClassLoaderCapableInjectorFactory(AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain)
Creates a new bootstrap class loader capable injector factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassInjector
resolve()
Resolves the class injector for this factory.
-
-
-
Field Detail
-
bootstrapInjectionStrategy
private final AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy
The bootstrap injection strategy being used.
-
classLoader
private final java.lang.ClassLoader classLoader
The class loader for which to create an injection factory.
-
protectionDomain
private final java.security.ProtectionDomain protectionDomain
The protection domain of the created classes.
-
-
Constructor Detail
-
BootstrapClassLoaderCapableInjectorFactory
protected BootstrapClassLoaderCapableInjectorFactory(AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, java.lang.ClassLoader classLoader, java.security.ProtectionDomain protectionDomain)
Creates a new bootstrap class loader capable injector factory.- Parameters:
bootstrapInjectionStrategy
- The bootstrap injection strategy being used.classLoader
- The class loader for which to create an injection factory.protectionDomain
- The protection domain of the created classes.
-
-
Method Detail
-
resolve
public ClassInjector resolve()
Resolves the class injector for this factory.- Specified by:
resolve
in interfaceAgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory
- Returns:
- The class injector for this factory.
-
-