Annotation Interface ModelBinding


@Documented @Target(FIELD) @Retention(RUNTIME) public @interface ModelBinding
Defines a binding to a model class, used to retrieve metadata about this model.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the getter method name defined on the type() type annotated with model information like Attribute
    returns the model the annotated type is bound to
  • Element Details

    • type

      Class<?> type
      returns the model the annotated type is bound to
      Returns:
      the model type
    • getterMethodName

      String getterMethodName
      Returns the getter method name defined on the type() type annotated with model information like Attribute
      Returns:
      the type getter method name