@FunctionalInterface
public interface InvokeAspect
Modifier and Type | Method and 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.
|
default boolean apply(MethodInfo methodInfo)
true
if method should be scanned.InvokeReplacer pointcut(InvokeInfo invokeInfo)
null
if method doesn't have to be replaced at all.
Special case is new
instruction. Since new
opcode
appears in the bytecode before actual constructor invocation,
description of InvokeInfo
is unknown. Therefore, for each
constructor that will be replaced, there must be an advice replacement method
with the same description.
Copyright © 2003-present Jodd Team