Package net.bytebuddy.agent.builder
Class AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice.Entry
-
- net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice
-
- Enclosing class:
- AgentBuilder.Transformer.ForAdvice.Entry
@Enhance protected static class AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice extends AgentBuilder.Transformer.ForAdvice.Entry
An entry for an advice class where both entry and exit advice methods are declared by the different classes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice.Entry
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice, AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForSplitAdvice(LatentMatcher<? super MethodDescription> matcher, java.lang.String enter, java.lang.String exit)
Creates a new entry for an advice class with explicit entry and exit advice classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Advice
resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)
Resolves the advice for this entry.-
Methods inherited from class net.bytebuddy.agent.builder.AgentBuilder.Transformer.ForAdvice.Entry
getMatcher
-
-
-
-
Constructor Detail
-
ForSplitAdvice
protected ForSplitAdvice(LatentMatcher<? super MethodDescription> matcher, java.lang.String enter, java.lang.String exit)
Creates a new entry for an advice class with explicit entry and exit advice classes.- Parameters:
matcher
- The matcher for advised methods.enter
- The fully-qualified, binary name of the enter advice class.exit
- The fully-qualified, binary name of the exit advice class.
-
-
Method Detail
-
resolve
protected Advice resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)
Description copied from class:AgentBuilder.Transformer.ForAdvice.Entry
Resolves the advice for this entry.- Specified by:
resolve
in classAgentBuilder.Transformer.ForAdvice.Entry
- Parameters:
advice
- The advice configuration.typePool
- The type pool to use.classFileLocator
- The class file locator to use.- Returns:
- The resolved advice.
-
-