|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.jaxrs.xml.cfg.MapperConfigurator
public class MapperConfigurator
Helper class used to encapsulate details of configuring an
XmlMapper instance to be used for data binding, as
well as accessing it.
| Field Summary | |
|---|---|
protected Annotations[] |
_defaultAnnotationsToUse
Annotations set to use by default; overridden by explicit call to setAnnotationsToUse(com.fasterxml.jackson.jaxrs.xml.Annotations[]) |
protected com.fasterxml.jackson.dataformat.xml.XmlMapper |
_defaultMapper
If no mapper was specified when constructed, and no configuration calls are made, a default mapper is constructed. |
protected Class<? extends com.fasterxml.jackson.databind.AnnotationIntrospector> |
_jaxbIntrospectorClass
To support optional dependency to Jackson JAXB annotations module (needed iff JAXB annotations are used for configuration) |
protected com.fasterxml.jackson.dataformat.xml.XmlMapper |
_mapper
Mapper provider was constructed with if any, or that was constructed due to a call to explicitly configure mapper. |
| Constructor Summary | |
|---|---|
MapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper,
Annotations[] defAnnotations)
|
|
| Method Summary | |
|---|---|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
_resolveIntrospector(Annotations ann)
|
protected com.fasterxml.jackson.databind.AnnotationIntrospector |
_resolveIntrospectors(Annotations[] annotationsToUse)
|
protected void |
_setAnnotations(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper,
Annotations[] annotationsToUse)
|
void |
configure(com.fasterxml.jackson.databind.DeserializationFeature f,
boolean state)
|
void |
configure(com.fasterxml.jackson.core.JsonGenerator.Feature f,
boolean state)
|
void |
configure(com.fasterxml.jackson.core.JsonParser.Feature f,
boolean state)
|
void |
configure(com.fasterxml.jackson.databind.SerializationFeature f,
boolean state)
|
com.fasterxml.jackson.dataformat.xml.XmlMapper |
getConfiguredMapper()
Method that locates, configures and returns XmlMapper to use |
protected com.fasterxml.jackson.dataformat.xml.JacksonXmlModule |
getConfiguredModule()
|
com.fasterxml.jackson.dataformat.xml.XmlMapper |
getDefaultMapper()
|
protected com.fasterxml.jackson.dataformat.xml.XmlMapper |
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. |
void |
setAnnotationsToUse(Annotations[] annotationsToUse)
|
void |
setMapper(com.fasterxml.jackson.dataformat.xml.XmlMapper m)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.fasterxml.jackson.dataformat.xml.XmlMapper _mapper
protected com.fasterxml.jackson.dataformat.xml.XmlMapper _defaultMapper
protected Annotations[] _defaultAnnotationsToUse
setAnnotationsToUse(com.fasterxml.jackson.jaxrs.xml.Annotations[])
protected Class<? extends com.fasterxml.jackson.databind.AnnotationIntrospector> _jaxbIntrospectorClass
| Constructor Detail |
|---|
public MapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper,
Annotations[] defAnnotations)
| Method Detail |
|---|
public com.fasterxml.jackson.dataformat.xml.XmlMapper getConfiguredMapper()
XmlMapper to use
public com.fasterxml.jackson.dataformat.xml.XmlMapper getDefaultMapper()
protected com.fasterxml.jackson.dataformat.xml.JacksonXmlModule getConfiguredModule()
public void setMapper(com.fasterxml.jackson.dataformat.xml.XmlMapper m)
public void setAnnotationsToUse(Annotations[] annotationsToUse)
public void configure(com.fasterxml.jackson.databind.DeserializationFeature f,
boolean state)
public void configure(com.fasterxml.jackson.databind.SerializationFeature f,
boolean state)
public void configure(com.fasterxml.jackson.core.JsonParser.Feature f,
boolean state)
public void configure(com.fasterxml.jackson.core.JsonGenerator.Feature f,
boolean state)
protected com.fasterxml.jackson.dataformat.xml.XmlMapper mapper()
protected void _setAnnotations(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper,
Annotations[] annotationsToUse)
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(Annotations[] annotationsToUse)
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(Annotations ann)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||