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.
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 Summary
Modifier and TypeMethodDescriptiongetMetadata(String name, Field field, Method setter, Method getter) CollectsPropertyMetadatafor a given property.
-
Method Details
-
getMetadata
CollectsPropertyMetadatafor a given property.- Parameters:
name- Name of the property.field- AFieldthat corresponds to the property. Will not benull, but may not be accessible.setter- AMethodthat is a setter for the given field. May benullif there is no setter.getter- AMethodthat is a getter for the given field. May benullif there is no getter.- Returns:
- A non-
null, but possibly empty, collection ofPropertyMetadata.
-