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
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.
-
-
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.
-
-
-
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()
Description copied from interface:AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory
Resolves the class injector for this factory.- Specified by:
resolve
in interfaceAgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory
- Returns:
- The class injector for this factory.
-
-