Interface ParameterInjector

  • All Known Implementing Classes:
    ParameterInjectorImpl

    public interface ParameterInjector
    The ParameterInjector allows for adding additional parameter to the use case methods.
    • Method Detail

      • hasValueFor

        boolean hasValueFor​(Class<?> parameterClass)
        This method is called to check, if the current method parameter should be injected and not deserialized from the request map.
        Parameters:
        parameterClass - the Class of the current parameter
        Returns:
        true if the current parameter should be injected
      • getParameterFor

        <T> T getParameterFor​(Class<T> parameterClass,
                              ParameterInjectionInformation injectionInformation)
        Method to retrieve the injected value for the parameter.
        Type Parameters:
        T - the type of the parameter
        Parameters:
        parameterClass - the Class of the current parameter
        injectionInformation - the ParameterInjectionInformation holding the current use case class, method and more
        Returns:
        the actual value to inject