InterceptingExecutableInvoker encapsulates the invocation of a
java.lang.reflect.Executable (i.e., method or constructor),
including support for dynamic resolution of method parameters via
ParameterResolvers.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | InterceptingExecutableInvoker.
|
| Modifier and Type | Field and Description |
|---|---|
| private static final InvocationInterceptorChain |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | invoke(Constructor<T>
the constructor to invoke and resolve parameters for constructor, Optional<Object> the outer instance to supply as the first argument
to the constructor; empty, for top-level classes outerInstance, ExtensionContextSupplier the current extensionContext, ExtensionRegistry ExtensionContextthe extensionRegistry, InterceptingExecutableInvoker.ExtensionRegistry to retrieve
ParameterResolvers fromthe call for intercepting this constructor
invocation via all registered interceptors interceptorCallInvoke the supplied constructor with the supplied outer instance and dynamic parameter resolution. |
| public <T extends @Nullable Object> T | invoke(Method
the method to invoke and resolve parameters for method, @Nullable Object the target on which the executable will be invoked,
potentially wrapped in an target, ExtensionContext Optional; can be null or an
empty Optional for a static methodthe current extensionContext, ExtensionRegistry ExtensionContextthe extensionRegistry, InterceptingExecutableInvoker.ExtensionRegistry to retrieve
ParameterResolvers fromthe call for intercepting this method invocation
via all registered interceptors interceptorCallInvoke the supplied method with dynamic parameter resolution. |
| private <E extends Executable, T> T | invoke(InvocationInterceptor.
|
| private <E extends Executable, T> T | invoke(InvocationInterceptor.
|
| public void | invokeVoid(Method method, @Nullable Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, InterceptingExecutableInvoker.
|
| interceptorChain | back to summary |
|---|---|
| private static final InvocationInterceptorChain interceptorChain | |
| InterceptingExecutableInvoker | back to summary |
|---|---|
| public InterceptingExecutableInvoker() | |
| invoke | back to summary |
|---|---|
| public <T> T invoke(Constructor<T> constructor, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry, InterceptingExecutableInvoker. Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.
| |
| invoke | back to summary |
|---|---|
| public <T extends @Nullable Object> T invoke(Method method, @Nullable Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, InterceptingExecutableInvoker. Invoke the supplied method with dynamic parameter resolution.
| |
| invoke | back to summary |
|---|---|
| private <E extends Executable, T> T invoke(InvocationInterceptor. | |
| invoke | back to summary |
|---|---|
| private <E extends Executable, T> T invoke(InvocationInterceptor. | |
| invokeVoid | back to summary |
|---|---|
| public void invokeVoid(Method method, @Nullable Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, InterceptingExecutableInvoker. | |
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public T | apply(InvocationInterceptor interceptor, InvocationInterceptor.
|
| public static InterceptingExecutableInvoker. |
| apply | back to summary |
|---|---|
| public T apply(InvocationInterceptor interceptor, InvocationInterceptor. | |
| ofVoidMethod | back to summary |
|---|---|
| public static InterceptingExecutableInvoker. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | apply(InvocationInterceptor interceptor, InvocationInterceptor.
|
| apply | back to summary |
|---|---|
| public void apply(InvocationInterceptor interceptor, InvocationInterceptor. | |