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 Detail

      • apply

        default boolean apply​(MethodInfo methodInfo)
        Determines if some method should be scanned for pointcuts. Returns true if method should be scanned.
      • pointcut

        InvokeReplacer pointcut​(InvokeInfo invokeInfo)
        Defines method invocation pointcut and returns replacement advice. Returns 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.