Interface ExecutableInvoker
- All Known Implementing Classes:
DefaultExecutableInvoker
ExecutableInvoker
allows invoking methods and constructors
with support for dynamic resolution of parameters via
ParameterResolvers
.- Since:
- 5.9
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> T
invoke
(Constructor<T> constructor) Invoke the supplied top-level constructor with dynamic parameter resolution.<T> T
invoke
(Constructor<T> constructor, @Nullable Object outerInstance) Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.default @Nullable Object
Invoke the suppliedstatic
method with dynamic parameter resolution.@Nullable Object
Invoke the supplied method with dynamic parameter resolution.
-
Method Details
-
invoke
-
invoke
-
invoke
Invoke the supplied top-level constructor with dynamic parameter resolution.- Parameters:
constructor
- the constructor to invoke and resolve parameters for- See Also:
-
invoke
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.Use this method when invoking the constructor for an inner class.
- Parameters:
constructor
- the constructor to invoke and resolve parameters forouterInstance
- the outer instance to supply as the first argument to the constructor; must benull
for top-level classes orstatic
nested classes
-