Class ParameterDetails

java.lang.Object
com.bld.proxy.api.find.data.ParameterDetails

public class ParameterDetails extends Object
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:
  • FindInterceptor
  • Constructor Details

    • ParameterDetails

      public ParameterDetails(Parameter parameter, Object value, Integer index)
      Constructs a new ParameterDetails instance.
      Parameters:
      parameter - the reflection Parameter descriptor for the method parameter
      value - the runtime value of the parameter
      index - the zero-based position of the parameter in the method signature
  • Method Details

    • getParameter

      public Parameter getParameter()
      Returns the reflection descriptor for the method parameter.
      Returns:
      the Parameter; never null
    • getValue

      public Object getValue()
      Returns the runtime value of the parameter.
      Returns:
      the parameter value, or null if not provided
    • getIndex

      public Integer getIndex()
      Returns the zero-based index of this parameter in the method signature.
      Returns:
      the parameter index