@HashCodeAndEqualsPlugin.Enhance protected static class AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice extends AgentBuilder.Transformer.ForAdvice.Entry
AgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice, AgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice
Modifier and Type | Field and Description |
---|---|
protected String |
name
The name of the advice class.
|
Modifier | Constructor and Description |
---|---|
protected |
ForUnifiedAdvice(LatentMatcher<? super MethodDescription> matcher,
String name)
Creates a new entry for an advice class where both the (optional) entry and exit advice methods are declared by the same class.
|
Modifier and Type | Method and Description |
---|---|
protected Advice |
resolve(Advice.WithCustomMapping advice,
TypePool typePool,
ClassFileLocator classFileLocator)
Resolves the advice for this entry.
|
getMatcher
protected final String name
protected ForUnifiedAdvice(LatentMatcher<? super MethodDescription> matcher, String name)
matcher
- The matcher for advised methods.name
- The name of the advice class.protected Advice resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator)
AgentBuilder.Transformer.ForAdvice.Entry
resolve
in class AgentBuilder.Transformer.ForAdvice.Entry
advice
- The advice configuration.typePool
- The type pool to use.classFileLocator
- The class file locator to use.Copyright © 2014–2024. All rights reserved.