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 providePropertyMetadatafor a given field. Used withReflectivePropertyProviderto obtain more detailed information about a given property.- Since:
- 2022-09-07
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<PropertyMetadata>getMetadata(String name, Field field, Method setter, Method getter)CollectsPropertyMetadatafor a given property.
-
-
-
Method Detail
-
getMetadata
Collection<PropertyMetadata> getMetadata(String name, Field field, Method setter, Method getter)
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.
-
-