Interface DefaultsResolver


public interface DefaultsResolver
A service that resolves defaults from annotations.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<?>
    resolve(Set<Annotation> annotations, GenericType<?> expectedType, String name)
    Resolve defaults from the set of annotations.
  • Method Details

    • resolve

      List<?> resolve(Set<Annotation> annotations, GenericType<?> expectedType, String name)
      Resolve defaults from the set of annotations. Uses default annotations from Default. In case there is more than one annotation defined, processes the first one in this order:
      Parameters:
      annotations - set of annotations to analyze
      expectedType - type we expect to map to
      name - 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