Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Method and Description |
---|---|
protected AgentBuilder.Transformer.ForAdvice |
AgentBuilder.Transformer.ForAdvice.make(Advice.WithCustomMapping advice,
Advice.ExceptionHandler exceptionHandler,
Assigner assigner,
ClassFileLocator classFileLocator,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
List<AgentBuilder.Transformer.ForAdvice.Entry> entries,
List<String> auxiliaries)
Creates an advice transformer.
|
AgentBuilder.Transformer.ForAdvice |
AgentBuilder.Transformer.ForAdvice.withExceptionHandler(Advice.ExceptionHandler exceptionHandler)
Registers an exception handler for suppressed exceptions to use by the registered advice.
|
Constructor and Description |
---|
ForAdvice(Advice.WithCustomMapping advice,
Advice.ExceptionHandler exceptionHandler,
Assigner assigner,
ClassFileLocator classFileLocator,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
List<AgentBuilder.Transformer.ForAdvice.Entry> entries,
List<String> auxiliaries)
Creates a new advice transformer.
|
Modifier and Type | Class and Description |
---|---|
static class |
Advice.ExceptionHandler.Default
Default implementations for commonly used exception handlers.
|
static class |
Advice.ExceptionHandler.Simple
A simple exception handler that returns a fixed stack manipulation.
|
Modifier and Type | Method and Description |
---|---|
Advice |
Advice.withExceptionHandler(Advice.ExceptionHandler exceptionHandler)
Configures this advice to execute the given exception handler upon a suppressed exception.
|
Copyright © 2014–2025. All rights reserved.