Annotation Type PreAssignmentProcessor


  • @Documented
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface PreAssignmentProcessor
    Specifies the binding of a processor to a field in a bean. This processor will run against the string that will be converted and assigned to the field and will be run prior to the validation and conversion.
    Since:
    5.0
    Author:
    Scott Conway
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends StringProcessor> processor
      Returns the processor that will process the string.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String paramString
      This is used to store additional information needed by the StringProcessor.
    • Element Detail

      • processor

        java.lang.Class<? extends StringProcessor> processor
        Returns the processor that will process the string.
        Returns:
        The class of the processor that will process the bean field string value
      • paramString

        java.lang.String paramString
        This is used to store additional information needed by the StringProcessor. This could, for example, be a default value so the same processor could be used by different fields.
        Returns:
        Parameter string required by the StringProcessor
        Default:
        ""