public interface DefaultsResolver
A service that resolves defaults from annotations.
-
Method Summary
Modifier and TypeMethodDescriptionList
<?> resolve
(Set<Annotation> annotations, GenericType<?> expectedType, String name) Resolve defaults from the set of annotations.
-
Method Details
-
resolve
Resolve defaults from the set of annotations. Uses default annotations fromDefault
. In case there is more than one annotation defined, processes the first one in this order:- Parameters:
annotations
- set of annotations to analyzeexpectedType
- type we expect to map toname
- name of the element that has default value annotation- Returns:
- a list of default values, correctly typed
- Throws:
MapperException
- in case there is a type mismatch
-