@API(status=INTERNAL,
since="5.9")
public class DefaultExecutableInvoker
extends java.lang.Object
implements ExecutableInvoker
| Modifier and Type | Field and Description |
|---|---|
private ExtensionContext |
extensionContext |
private ExtensionRegistry |
extensionRegistry |
| Constructor and Description |
|---|
DefaultExecutableInvoker(ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry) |
DefaultExecutableInvoker(JupiterEngineExecutionContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
invoke(java.lang.reflect.Constructor<T> constructor,
java.lang.Object outerInstance)
Invoke the supplied constructor with the supplied outer instance and
dynamic parameter resolution.
|
java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object target)
Invoke the supplied method with dynamic parameter resolution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvoke, invokeprivate final ExtensionContext extensionContext
private final ExtensionRegistry extensionRegistry
public DefaultExecutableInvoker(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
public DefaultExecutableInvoker(JupiterEngineExecutionContext context)
public <T> T invoke(java.lang.reflect.Constructor<T> constructor,
java.lang.Object outerInstance)
ExecutableInvokerUse this method when invoking the constructor for an inner class.
invoke in interface ExecutableInvokerconstructor - the constructor to invoke and resolve parameters forouterInstance - the outer instance to supply as the first argument
to the constructor; must be null for top-level classes
or static nested classespublic java.lang.Object invoke(java.lang.reflect.Method method,
java.lang.Object target)
ExecutableInvokerinvoke in interface ExecutableInvokermethod - the method to invoke and resolve parameters fortarget - the target on which the executable will be invoked;
can be null for static methods