Class DefaultParameterNameProvider

java.lang.Object
io.micronaut.configuration.hibernate.validator.DefaultParameterNameProvider
All Implemented Interfaces:
jakarta.validation.ParameterNameProvider

@Singleton public class DefaultParameterNameProvider extends Object implements jakarta.validation.ParameterNameProvider
Default implementation of the ParameterNameProvider interface that.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • DefaultParameterNameProvider

      public DefaultParameterNameProvider(io.micronaut.context.BeanContext beanContext)
      Constructor.
      Parameters:
      beanContext - beanContext
  • Method Details

    • getParameterNames

      public List<String> getParameterNames(Constructor<?> constructor)
      Specified by:
      getParameterNames in interface jakarta.validation.ParameterNameProvider
    • getParameterNames

      public List<String> getParameterNames(Method method)
      Specified by:
      getParameterNames in interface jakarta.validation.ParameterNameProvider
    • defaultParameterTypes

      protected List<String> defaultParameterTypes(Class<?>[] parameterTypes)
      Add the parameter types to a list of names.
      Parameters:
      parameterTypes - parameterTypes
      Returns:
      list of strings