Package com.bld.proxy.api.find.data
Class ParameterDetails
java.lang.Object
com.bld.proxy.api.find.data.ParameterDetails
Holds metadata about a single method parameter captured during proxy invocation.
During the interception of a dynamic controller method call, each relevant
parameter (e.g., those annotated with @RequestBody or
@AuthenticationPrincipal) is wrapped in a ParameterDetails
instance so that its reflection Parameter, runtime value, and positional
index are all available in one place.
- Author:
- Francesco Baldi
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParameterDetails(Parameter parameter, Object value, Integer index) Constructs a newParameterDetailsinstance. -
Method Summary
-
Constructor Details
-
ParameterDetails
Constructs a newParameterDetailsinstance.- Parameters:
parameter- the reflectionParameterdescriptor for the method parametervalue- the runtime value of the parameterindex- the zero-based position of the parameter in the method signature
-
-
Method Details
-
getParameter
Returns the reflection descriptor for the method parameter.- Returns:
- the
Parameter; nevernull
-
getValue
Returns the runtime value of the parameter.- Returns:
- the parameter value, or
nullif not provided
-
getIndex
Returns the zero-based index of this parameter in the method signature.- Returns:
- the parameter index
-