@API(status=MAINTAINED, since="1.6.0") @FunctionalInterface public interface InvokePropertyMethodHook extends LifecycleHook
Caveat: Only one hook per property method is possible.
Modifier and Type | Field and Description |
---|---|
static InvokePropertyMethodHook |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object target,
java.lang.Object... args)
Invoke a method through some reflective mechanism.
|
appliesTo, propagateTo
static final InvokePropertyMethodHook DEFAULT
java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object target, java.lang.Object... args) throws java.lang.Throwable
method
- A method to be calledtarget
- An instance of the method's declaring class or null if it's a static methodargs
- The arguments to user for method calljava.lang.Throwable