Package com.fasterxml.jackson.jaxrs.yaml
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 anYAMLMapperinstance to be used for data binding, as well as accessing it.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.locks.ReentrantLock_lock-
Fields inherited from class com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase
_defaultAnnotationsToUse, _defaultMapper, _jaxbIntrospectorClass, _mapper
-
-
Constructor Summary
Constructors Constructor Description YAMLMapperConfigurator(com.fasterxml.jackson.dataformat.yaml.YAMLMapper mapper, Annotations[] defAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospector(Annotations ann)protected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospectors(Annotations[] annotationsToUse)com.fasterxml.jackson.dataformat.yaml.YAMLMappergetConfiguredMapper()Method that locates, configures and returnsYAMLMapperto usecom.fasterxml.jackson.dataformat.yaml.YAMLMappergetDefaultMapper()protected com.fasterxml.jackson.dataformat.yaml.YAMLMappermapper()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.-
Methods inherited from class com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase
_setAnnotations, configure, configure, configure, configure, setAnnotationsToUse, setMapper
-
-
-
-
Constructor Detail
-
YAMLMapperConfigurator
public YAMLMapperConfigurator(com.fasterxml.jackson.dataformat.yaml.YAMLMapper mapper, Annotations[] defAnnotations)
-
-
Method Detail
-
getConfiguredMapper
public com.fasterxml.jackson.dataformat.yaml.YAMLMapper getConfiguredMapper()
Method that locates, configures and returnsYAMLMapperto use- Specified by:
getConfiguredMapperin classMapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
-
getDefaultMapper
public com.fasterxml.jackson.dataformat.yaml.YAMLMapper getDefaultMapper()
- Specified by:
getDefaultMapperin classMapperConfiguratorBase<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:
mapperin classMapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
- Specified by:
_resolveIntrospectorsin classMapperConfiguratorBase<YAMLMapperConfigurator,com.fasterxml.jackson.dataformat.yaml.YAMLMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
-
-