Package jodd.proxetta
Interface InvokeAspect
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface InvokeAspect
Invoke aspect defines method pointcuts that should be replaced and their advice replacements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
apply(MethodInfo methodInfo)
Determines if some method should be scanned for pointcuts.InvokeReplacer
pointcut(InvokeInfo invokeInfo)
Defines method invocation pointcut and returns replacement advice.
-
-
-
Method Detail
-
apply
default boolean apply(MethodInfo methodInfo)
Determines if some method should be scanned for pointcuts. Returnstrue
if method should be scanned.
-
pointcut
InvokeReplacer pointcut(InvokeInfo invokeInfo)
Defines method invocation pointcut and returns replacement advice. Returnsnull
if method doesn't have to be replaced at all.Special case is
new
instruction. Sincenew
opcode appears in the bytecode before actual constructor invocation, description ofInvokeInfo
is unknown. Therefore, for each constructor that will be replaced, there must be an advice replacement method with the same description.
-
-