Interface MetadataProvider

All Known Implementing Classes:
AnnotationMetadataProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MetadataProvider
Marker interface for objects that provide PropertyMetadata for a given field. Used with ReflectivePropertyProvider to obtain more detailed information about a given property.
Since:
2022-09-07
Author:
miki
  • Method Details

    • getMetadata

      Collection<PropertyMetadata> getMetadata(String name, Field field, Method setter, Method getter)
      Collects PropertyMetadata for a given property.
      Parameters:
      name - Name of the property.
      field - A Field that corresponds to the property. Will not be null, but may not be accessible.
      setter - A Method that is a setter for the given field. May be null if there is no setter.
      getter - A Method that is a getter for the given field. May be null if there is no getter.
      Returns:
      A non-null, but possibly empty, collection of PropertyMetadata.