Package ninja.params

Interface ArgumentExtractor<T>

    • Method Detail

      • extract

        T extract​(Context context)
        Extract the argument from the context
        Parameters:
        context - The argument to extract
        Returns:
        The extracted argument
      • getExtractedType

        Class<T> getExtractedType()
        Get the type of the argument that is extracted
        Returns:
        The type of the argument that is being extracted
      • getFieldName

        String getFieldName()
        Get the field name that is being extracted, if this value is extracted from a field
        Returns:
        The field name, or null if the argument isn't extracted from a named field