Interface InvokePropertyMethodHook

All Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@API(status=MAINTAINED, since="1.6.0") @FunctionalInterface public interface InvokePropertyMethodHook extends LifecycleHook
Implement this hook to override behaviour that invokes a method through reflection. Per default ReflectionSupport.invokeMethod(Method, Object, Object...) is called.

Caveat: Only one hook per property method is possible.

  • Field Details

  • Method Details

    • invoke

      Object invoke(Method method, Object target, Object... args) throws Throwable
      Invoke a method through some reflective mechanism. You may want to override the default call if invocation requires something special.
      method - A method to be called
      target - An instance of the method's declaring class or null if it's a static method
      args - The arguments to user for method call
      any object