Class YAMLMapperConfigurator

java.lang.Object
com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
com.fasterxml.jackson.jaxrs.yaml.YAMLMapperConfigurator

public class YAMLMapperConfigurator extends MapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
Helper class used to encapsulate details of configuring an YAMLMapper instance to be used for data binding, as well as accessing it.
  • Field Details

  • Constructor Details

    • YAMLMapperConfigurator

      public YAMLMapperConfigurator(com.fasterxml.jackson.dataformat.yaml.YAMLMapper mapper, Annotations[] defAnnotations)
  • Method Details

    • getConfiguredMapper

      public com.fasterxml.jackson.dataformat.yaml.YAMLMapper getConfiguredMapper()
      Method that locates, configures and returns YAMLMapper to use
      Specified by:
      getConfiguredMapper in class MapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
    • getDefaultMapper

      public com.fasterxml.jackson.dataformat.yaml.YAMLMapper getDefaultMapper()
      Specified by:
      getDefaultMapper in class MapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
    • mapper

      protected com.fasterxml.jackson.dataformat.yaml.YAMLMapper mapper()
      Helper method that will ensure that there is a configurable non-default mapper (constructing an instance if one didn't yet exit), and return that mapper.
      Specified by:
      mapper in class MapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
    • _resolveIntrospectors

      protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
      Specified by:
      _resolveIntrospectors in class MapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
    • _resolveIntrospector

      protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)