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 InvokeAspectInvoke 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 booleanapply(MethodInfo methodInfo)Determines if some method should be scanned for pointcuts.InvokeReplacerpointcut(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. Returnstrueif method should be scanned.
-
pointcut
InvokeReplacer pointcut(InvokeInfo invokeInfo)
Defines method invocation pointcut and returns replacement advice. Returnsnullif method doesn't have to be replaced at all.Special case is
newinstruction. Sincenewopcode appears in the bytecode before actual constructor invocation, description ofInvokeInfois unknown. Therefore, for each constructor that will be replaced, there must be an advice replacement method with the same description.
-
-