ParameterResolutionUtils provides support for dynamic resolution
of executable parameters via ParameterResolvers.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static @Nullable Object | resolveParameter(ParameterContext parameterContext, Executable executable, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry)
|
| public static @Nullable Object[] | Returns: the array of Objects to be used as parameters in the executable invocation; nevernull though potentially emptythe method for which to resolve parameters method, Optional<Object> an target, ExtensionContext Optional containing the target on which the
executable will be invoked; never null but should be empty for
static methods and constructorsthe current extensionContext, ExtensionRegistry ExtensionContextthe extensionRegistry)ExtensionRegistry to retrieve
ParameterResolvers fromResolve the array of parameters for the supplied method and target. |
| public static @Nullable Object[] | Returns: the array of Objects to be used as parameters in the executable invocation; nevernull though potentially emptythe executable for which to resolve parameters executable, Optional<Object> an target, Optional<Object> Optional containing the target on which the
executable will be invoked; never null but should be empty for
static methods and constructorsthe outer instance that will be supplied as the
first argument to a constructor for an inner class; should be outerInstance, ExtensionContext null
for methods and constructors for top-level or static classesthe current extensionContext, ExtensionRegistry ExtensionContextthe extensionRegistry)ExtensionRegistry to retrieve
ParameterResolvers fromResolve the array of parameters for the supplied executable, target, and outer instance. |
| public static @Nullable Object[] | resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry)
|
| private static @Nullable Object[] | resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry, Parameter[] parameters)
|
| private static void | validateResolvedType(Parameter parameter, @Nullable Object value, Executable executable, ParameterResolver resolver)
|
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| ParameterResolutionUtils | back to summary |
|---|---|
| private ParameterResolutionUtils() | |
| asLabel | back to summary |
|---|---|
| private static String asLabel(Executable executable) | |
| resolveParameter | back to summary |
|---|---|
| private static @Nullable Object resolveParameter(ParameterContext parameterContext, Executable executable, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry) | |
| resolveParameters | back to summary |
|---|---|
| public static @Nullable Object[] resolveParameters(Method method, Optional<Object> target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) Resolve the array of parameters for the supplied method and target.
| |
| resolveParameters | back to summary |
|---|---|
| public static @Nullable Object[] resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) Resolve the array of parameters for the supplied executable, target, and outer instance.
| |
| resolveParameters | back to summary |
|---|---|
| public static @Nullable Object[] resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry) | |
| resolveParameters | back to summary |
|---|---|
| private static @Nullable Object[] resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry, Parameter[] parameters) | |
| validateResolvedType | back to summary |
|---|---|
| private static void validateResolvedType(Parameter parameter, @Nullable Object value, Executable executable, ParameterResolver resolver) | |