Top Description Fields Constructors Methods
com.fasterxml.jackson.jaxrs.yaml

public Class YAMLMapperConfigurator

extends MapperConfiguratorBase<YAMLMapperConfigurator, YAMLMapper>
Class Inheritance
Imports
com.fasterxml.jackson.databind.AnnotationIntrospector, com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector, com.fasterxml.jackson.dataformat.yaml.YAMLMapper, com.fasterxml.jackson.jaxrs.cfg.Annotations, .MapperConfiguratorBase, com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector, java.util.ArrayList, java.util.concurrent.locks.ReentrantLock

Helper class used to encapsulate details of configuring an YAMLMapper instance to be used for data binding, as well as accessing it.

Field Summary

Modifier and TypeField and Description
private final ReentrantLock
Inherited from com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase:
_defaultAnnotationsToUse_defaultMapper_jaxbIntrospectorClass_mapper

Constructor Summary

AccessConstructor and Description
public
YAMLMapperConfigurator(YAMLMapper mapper, Annotations[] defAnnotations)

Method Summary

Modifier and TypeMethod and Description
protected AnnotationIntrospector
protected AnnotationIntrospector
public YAMLMapper
getConfiguredMapper()

Implements abstract com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase.getConfiguredMapper.

Method that locates, configures and returns YAMLMapper to use

public YAMLMapper
protected YAMLMapper
mapper()

Implements abstract com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase.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.

Inherited from com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase:
_setAnnotationsconfigureconfigureconfigureconfiguresetAnnotationsToUsesetMapper

Field Detail

_lockback to summary
private final ReentrantLock _lock

Constructor Detail

YAMLMapperConfiguratorback to summary
public YAMLMapperConfigurator(YAMLMapper mapper, Annotations[] defAnnotations)

Method Detail

_resolveIntrospectorback to summary
protected AnnotationIntrospector _resolveIntrospector(Annotations ann)
_resolveIntrospectorsback to summary
protected AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)

Implements abstract com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase._resolveIntrospectors.

Annotations
@Override
getConfiguredMapperback to summary
public YAMLMapper getConfiguredMapper()

Implements abstract com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase.getConfiguredMapper.

Method that locates, configures and returns YAMLMapper to use

Annotations
@Override
getDefaultMapperback to summary
public YAMLMapper getDefaultMapper()

Implements abstract com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase.getDefaultMapper.

Annotations
@Override
mapperback to summary
protected YAMLMapper mapper()

Implements abstract com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase.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.

Annotations
@Override