Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.BootstrapInjectionStrategy.Enabled
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.BootstrapInjectionStrategy.Enabled
-
- All Implemented Interfaces:
AgentBuilder.Default.BootstrapInjectionStrategy
- Enclosing interface:
- AgentBuilder.Default.BootstrapInjectionStrategy
@Enhance public static class AgentBuilder.Default.BootstrapInjectionStrategy.Enabled extends java.lang.Object implements AgentBuilder.Default.BootstrapInjectionStrategy
An enabled bootstrap injection strategy.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Default.BootstrapInjectionStrategy
AgentBuilder.Default.BootstrapInjectionStrategy.Disabled, AgentBuilder.Default.BootstrapInjectionStrategy.Enabled, AgentBuilder.Default.BootstrapInjectionStrategy.Unsafe
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
folder
The folder in which jar files are to be saved.private java.lang.instrument.Instrumentation
instrumentation
The instrumentation to use for appending jar files.
-
Constructor Summary
Constructors Constructor Description Enabled(java.io.File folder, java.lang.instrument.Instrumentation instrumentation)
Creates a new enabled bootstrap class loader injection strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassInjector
make(java.security.ProtectionDomain protectionDomain)
Creates an injector for the bootstrap class loader.
-
-
-
Constructor Detail
-
Enabled
public Enabled(java.io.File folder, java.lang.instrument.Instrumentation instrumentation)
Creates a new enabled bootstrap class loader injection strategy.- Parameters:
folder
- The folder in which jar files are to be saved.instrumentation
- The instrumentation to use for appending jar files.
-
-
Method Detail
-
make
public ClassInjector make(java.security.ProtectionDomain protectionDomain)
Creates an injector for the bootstrap class loader.- Specified by:
make
in interfaceAgentBuilder.Default.BootstrapInjectionStrategy
- Parameters:
protectionDomain
- The protection domain to be used.- Returns:
- A class injector for the bootstrap class loader.
-
-