1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_79) on Wed Jul 20 08:39:09 PDT 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>Module.SetupContext (jackson-databind 2.8.0 API)</title> 8<meta name="date" content="2016-07-20"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="Module.SetupContext (jackson-databind 2.8.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/Module.SetupContext.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../index-all.html">Index</a></li> 35<li><a href="../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../index.html?com/fasterxml/jackson/databind/Module.SetupContext.html" target="_top">Frames</a></li> 45<li><a href="Module.SetupContext.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li>Field | </li> 67<li>Constr | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li>Field | </li> 73<li>Constr | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind</div> 84<h2 title="Interface Module.SetupContext" class="title">Interface Module.SetupContext</h2> 85</div> 86<div class="contentContainer"> 87<div class="description"> 88<ul class="blockList"> 89<li class="blockList"> 90<dl> 91<dt>Enclosing class:</dt> 92<dd><a href="../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">Module</a></dd> 93</dl> 94<hr> 95<br> 96<pre>public static interface <span class="strong">Module.SetupContext</span></pre> 97<div class="block">Interface Jackson exposes to modules for purpose of registering 98 extended functionality. 99 Usually implemented by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>, but modules should 100 NOT rely on this -- if they do require access to mapper instance, 101 they need to call <a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getOwner()"><code>getOwner()</code></a> method.</div> 102</li> 103</ul> 104</div> 105<div class="summary"> 106<ul class="blockList"> 107<li class="blockList"> 108<!-- ========== METHOD SUMMARY =========== --> 109<ul class="blockList"> 110<li class="blockList"><a name="method_summary"> 111<!-- --> 112</a> 113<h3>Method Summary</h3> 114<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 115<caption><span>Methods</span><span class="tabEnd"> </span></caption> 116<tr> 117<th class="colFirst" scope="col">Modifier and Type</th> 118<th class="colLast" scope="col">Method and Description</th> 119</tr> 120<tr class="altColor"> 121<td class="colFirst"><code>void</code></td> 122<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addAbstractTypeResolver(com.fasterxml.jackson.databind.AbstractTypeResolver)">addAbstractTypeResolver</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/AbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind">AbstractTypeResolver</a> resolver)</code> 123<div class="block">Method that module can use to register additional 124 <a href="../../../../com/fasterxml/jackson/databind/AbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind"><code>AbstractTypeResolver</code></a> instance, to handle resolution of 125 abstract to concrete types (either by defaulting, or by materializing).</div> 126</td> 127</tr> 128<tr class="rowColor"> 129<td class="colFirst"><code>void</code></td> 130<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addBeanDeserializerModifier(com.fasterxml.jackson.databind.deser.BeanDeserializerModifier)">addBeanDeserializerModifier</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.html" title="class in com.fasterxml.jackson.databind.deser">BeanDeserializerModifier</a> mod)</code> 131<div class="block">Method that module can use to register additional modifier objects to 132 customize configuration and construction of bean deserializers.</div> 133</td> 134</tr> 135<tr class="altColor"> 136<td class="colFirst"><code>void</code></td> 137<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addBeanSerializerModifier(com.fasterxml.jackson.databind.ser.BeanSerializerModifier)">addBeanSerializerModifier</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializerModifier</a> mod)</code> 138<div class="block">Method that module can use to register additional modifier objects to 139 customize configuration and construction of bean serializers.</div> 140</td> 141</tr> 142<tr class="rowColor"> 143<td class="colFirst"><code>void</code></td> 144<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addDeserializationProblemHandler(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler)">addDeserializationProblemHandler</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.html" title="class in com.fasterxml.jackson.databind.deser">DeserializationProblemHandler</a> handler)</code> 145<div class="block">Add a deserialization problem handler</div> 146</td> 147</tr> 148<tr class="altColor"> 149<td class="colFirst"><code>void</code></td> 150<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addDeserializers(com.fasterxml.jackson.databind.deser.Deserializers)">addDeserializers</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/deser/Deserializers.html" title="interface in com.fasterxml.jackson.databind.deser">Deserializers</a> d)</code> 151<div class="block">Method that module can use to register additional deserializers to use for 152 handling types.</div> 153</td> 154</tr> 155<tr class="rowColor"> 156<td class="colFirst"><code>void</code></td> 157<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addKeyDeserializers(com.fasterxml.jackson.databind.deser.KeyDeserializers)">addKeyDeserializers</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a> s)</code> 158<div class="block">Method that module can use to register additional deserializers to use for 159 handling Map key values (which are separate from value deserializers because 160 they are always serialized from String values)</div> 161</td> 162</tr> 163<tr class="altColor"> 164<td class="colFirst"><code>void</code></td> 165<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addKeySerializers(com.fasterxml.jackson.databind.ser.Serializers)">addKeySerializers</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ser/Serializers.html" title="interface in com.fasterxml.jackson.databind.ser">Serializers</a> s)</code> 166<div class="block">Method that module can use to register additional serializers to use for 167 handling Map key values (which are separate from value serializers because 168 they must write <code>JsonToken.FIELD_NAME</code> instead of String value).</div> 169</td> 170</tr> 171<tr class="rowColor"> 172<td class="colFirst"><code>void</code></td> 173<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addSerializers(com.fasterxml.jackson.databind.ser.Serializers)">addSerializers</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/ser/Serializers.html" title="interface in com.fasterxml.jackson.databind.ser">Serializers</a> s)</code> 174<div class="block">Method that module can use to register additional serializers to use for 175 handling types.</div> 176</td> 177</tr> 178<tr class="altColor"> 179<td class="colFirst"><code>void</code></td> 180<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addTypeModifier(com.fasterxml.jackson.databind.type.TypeModifier)">addTypeModifier</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/type/TypeModifier.html" title="class in com.fasterxml.jackson.databind.type">TypeModifier</a> modifier)</code> 181<div class="block">Method that module can use to register additional 182 <a href="../../../../com/fasterxml/jackson/databind/type/TypeModifier.html" title="class in com.fasterxml.jackson.databind.type"><code>TypeModifier</code></a> instance, which can augment <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind"><code>JavaType</code></a> 183 instances constructed by <a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type"><code>TypeFactory</code></a>.</div> 184</td> 185</tr> 186<tr class="rowColor"> 187<td class="colFirst"><code>void</code></td> 188<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#addValueInstantiators(com.fasterxml.jackson.databind.deser.ValueInstantiators)">addValueInstantiators</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiators.html" title="interface in com.fasterxml.jackson.databind.deser">ValueInstantiators</a> instantiators)</code> 189<div class="block">Method that module can use to register additional <a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser"><code>ValueInstantiator</code></a>s, 190 by adding <a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiators.html" title="interface in com.fasterxml.jackson.databind.deser"><code>ValueInstantiators</code></a> object that gets called when 191 instantatiator is needed by a deserializer.</div> 192</td> 193</tr> 194<tr class="altColor"> 195<td class="colFirst"><code>void</code></td> 196<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#appendAnnotationIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector)">appendAnnotationIntrospector</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 197<div class="block">Method for registering specified <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind"><code>AnnotationIntrospector</code></a> as the lowest 198 priority introspector, chained with existing introspector(s) and called 199 as fallback for cases not otherwise handled.</div> 200</td> 201</tr> 202<tr class="rowColor"> 203<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/cfg/MutableConfigOverride.html" title="class in com.fasterxml.jackson.databind.cfg">MutableConfigOverride</a></code></td> 204<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#configOverride(java.lang.Class)">configOverride</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> 205<div class="block">"Mutant accessor" for getting a mutable configuration override object for 206 given type, needed to add or change per-type overrides applied 207 to properties of given type.</div> 208</td> 209</tr> 210<tr class="altColor"> 211<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a></code></td> 212<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getMapperVersion()">getMapperVersion</a></strong>()</code> 213<div class="block">Method that returns version information about <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> 214 that implements this context.</div> 215</td> 216</tr> 217<tr class="rowColor"> 218<td class="colFirst"><code><C extends <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/ObjectCodec.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">ObjectCodec</a>> <br>C</code></td> 219<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getOwner()">getOwner</a></strong>()</code> 220<div class="block">Fallback access method that allows modules to refer to the 221 <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> that provided this context.</div> 222</td> 223</tr> 224<tr class="altColor"> 225<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</a></code></td> 226<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getTypeFactory()">getTypeFactory</a></strong>()</code> 227<div class="block">Accessor for finding <a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type"><code>TypeFactory</code></a> that is currently configured 228 by the context.</div> 229</td> 230</tr> 231<tr class="rowColor"> 232<td class="colFirst"><code>void</code></td> 233<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#insertAnnotationIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector)">insertAnnotationIntrospector</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 234<div class="block">Method for registering specified <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind"><code>AnnotationIntrospector</code></a> as the highest 235 priority introspector (will be chained with existing introspector(s) which 236 will be used as fallbacks for cases this introspector does not handle)</div> 237</td> 238</tr> 239<tr class="altColor"> 240<td class="colFirst"><code>boolean</code></td> 241<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#isEnabled(com.fasterxml.jackson.databind.DeserializationFeature)">isEnabled</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html" title="enum in com.fasterxml.jackson.databind">DeserializationFeature</a> f)</code> </td> 242</tr> 243<tr class="rowColor"> 244<td class="colFirst"><code>boolean</code></td> 245<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#isEnabled(com.fasterxml.jackson.core.JsonFactory.Feature)">isEnabled</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonFactory.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory.Feature</a> f)</code> </td> 246</tr> 247<tr class="altColor"> 248<td class="colFirst"><code>boolean</code></td> 249<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature)">isEnabled</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator.Feature</a> f)</code> </td> 250</tr> 251<tr class="rowColor"> 252<td class="colFirst"><code>boolean</code></td> 253<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)">isEnabled</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonParser.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.Feature</a> f)</code> </td> 254</tr> 255<tr class="altColor"> 256<td class="colFirst"><code>boolean</code></td> 257<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#isEnabled(com.fasterxml.jackson.databind.MapperFeature)">isEnabled</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> f)</code> </td> 258</tr> 259<tr class="rowColor"> 260<td class="colFirst"><code>boolean</code></td> 261<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#isEnabled(com.fasterxml.jackson.databind.SerializationFeature)">isEnabled</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> f)</code> </td> 262</tr> 263<tr class="altColor"> 264<td class="colFirst"><code>void</code></td> 265<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#registerSubtypes(java.lang.Class...)">registerSubtypes</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... subtypes)</code> 266<div class="block">Method for registering specified classes as subtypes (of supertype(s) 267 they have)</div> 268</td> 269</tr> 270<tr class="rowColor"> 271<td class="colFirst"><code>void</code></td> 272<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#registerSubtypes(com.fasterxml.jackson.databind.jsontype.NamedType...)">registerSubtypes</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</a>... subtypes)</code> 273<div class="block">Method for registering specified classes as subtypes (of supertype(s) 274 they have), using specified type names.</div> 275</td> 276</tr> 277<tr class="altColor"> 278<td class="colFirst"><code>void</code></td> 279<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#setClassIntrospector(com.fasterxml.jackson.databind.introspect.ClassIntrospector)">setClassIntrospector</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/introspect/ClassIntrospector.html" title="class in com.fasterxml.jackson.databind.introspect">ClassIntrospector</a> ci)</code> 280<div class="block">Method for replacing the default class introspector with a derived class that 281 overrides specific behavior.</div> 282</td> 283</tr> 284<tr class="rowColor"> 285<td class="colFirst"><code>void</code></td> 286<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#setMixInAnnotations(java.lang.Class,%20java.lang.Class)">setMixInAnnotations</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> target, 287 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> mixinSource)</code> 288<div class="block">Method used for defining mix-in annotations to use for augmenting 289 specified class or interface.</div> 290</td> 291</tr> 292<tr class="altColor"> 293<td class="colFirst"><code>void</code></td> 294<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#setNamingStrategy(com.fasterxml.jackson.databind.PropertyNamingStrategy)">setNamingStrategy</a></strong>(<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> naming)</code> 295<div class="block">Method that may be used to override naming strategy that is used 296 by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>.</div> 297</td> 298</tr> 299</table> 300</li> 301</ul> 302</li> 303</ul> 304</div> 305<div class="details"> 306<ul class="blockList"> 307<li class="blockList"> 308<!-- ============ METHOD DETAIL ========== --> 309<ul class="blockList"> 310<li class="blockList"><a name="method_detail"> 311<!-- --> 312</a> 313<h3>Method Detail</h3> 314<a name="getMapperVersion()"> 315<!-- --> 316</a> 317<ul class="blockList"> 318<li class="blockList"> 319<h4>getMapperVersion</h4> 320<pre><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/Version.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Version</a> getMapperVersion()</pre> 321<div class="block">Method that returns version information about <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> 322 that implements this context. Modules can use this to choose 323 different settings or initialization order; or even decide to fail 324 set up completely if version is compatible with module.</div> 325</li> 326</ul> 327<a name="getOwner()"> 328<!-- --> 329</a> 330<ul class="blockList"> 331<li class="blockList"> 332<h4>getOwner</h4> 333<pre><C extends <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/ObjectCodec.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">ObjectCodec</a>> C getOwner()</pre> 334<div class="block">Fallback access method that allows modules to refer to the 335 <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> that provided this context. 336 It should NOT be needed by most modules; and ideally should 337 not be used -- however, there may be cases where this may 338 be necessary due to various design constraints. 339<p> 340 NOTE: use of this method is discouraged, as it allows access to 341 things Modules typically should not modify. It is included, however, 342 to allow access to new features in cases where Module API 343 has not yet been extended, or there are oversights. 344<p> 345 Return value is chosen to not leak dependency to <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>; 346 however, instance will always be of that type. 347 This is why return value is declared generic, to allow caller to 348 specify context to often avoid casting.</div> 349<dl><dt><span class="strong">Since:</span></dt> 350 <dd>2.0</dd></dl> 351</li> 352</ul> 353<a name="getTypeFactory()"> 354<!-- --> 355</a> 356<ul class="blockList"> 357<li class="blockList"> 358<h4>getTypeFactory</h4> 359<pre><a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</a> getTypeFactory()</pre> 360<div class="block">Accessor for finding <a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type"><code>TypeFactory</code></a> that is currently configured 361 by the context. 362<p> 363 NOTE: since it is possible that other modules might change or replace 364 TypeFactory, use of this method adds order-dependency for registrations.</div> 365<dl><dt><span class="strong">Since:</span></dt> 366 <dd>2.0</dd></dl> 367</li> 368</ul> 369<a name="isEnabled(com.fasterxml.jackson.databind.MapperFeature)"> 370<!-- --> 371</a> 372<ul class="blockList"> 373<li class="blockList"> 374<h4>isEnabled</h4> 375<pre>boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> f)</pre> 376</li> 377</ul> 378<a name="isEnabled(com.fasterxml.jackson.databind.DeserializationFeature)"> 379<!-- --> 380</a> 381<ul class="blockList"> 382<li class="blockList"> 383<h4>isEnabled</h4> 384<pre>boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html" title="enum in com.fasterxml.jackson.databind">DeserializationFeature</a> f)</pre> 385</li> 386</ul> 387<a name="isEnabled(com.fasterxml.jackson.databind.SerializationFeature)"> 388<!-- --> 389</a> 390<ul class="blockList"> 391<li class="blockList"> 392<h4>isEnabled</h4> 393<pre>boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> f)</pre> 394</li> 395</ul> 396<a name="isEnabled(com.fasterxml.jackson.core.JsonFactory.Feature)"> 397<!-- --> 398</a> 399<ul class="blockList"> 400<li class="blockList"> 401<h4>isEnabled</h4> 402<pre>boolean isEnabled(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonFactory.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonFactory.Feature</a> f)</pre> 403</li> 404</ul> 405<a name="isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)"> 406<!-- --> 407</a> 408<ul class="blockList"> 409<li class="blockList"> 410<h4>isEnabled</h4> 411<pre>boolean isEnabled(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonParser.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.Feature</a> f)</pre> 412</li> 413</ul> 414<a name="isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature)"> 415<!-- --> 416</a> 417<ul class="blockList"> 418<li class="blockList"> 419<h4>isEnabled</h4> 420<pre>boolean isEnabled(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.Feature.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator.Feature</a> f)</pre> 421</li> 422</ul> 423<a name="configOverride(java.lang.Class)"> 424<!-- --> 425</a> 426<ul class="blockList"> 427<li class="blockList"> 428<h4>configOverride</h4> 429<pre><a href="../../../../com/fasterxml/jackson/databind/cfg/MutableConfigOverride.html" title="class in com.fasterxml.jackson.databind.cfg">MutableConfigOverride</a> configOverride(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 430<div class="block">"Mutant accessor" for getting a mutable configuration override object for 431 given type, needed to add or change per-type overrides applied 432 to properties of given type. 433 Usage is through returned object by colling "setter" methods, which 434 directly modify override object and take effect directly. 435 For example you can do 436<pre> 437 mapper.configOverride(java.util.Date.class) 438 .setFormat(JsonFormat.Value.forPattern("yyyy-MM-dd")); 439<pre> 440 to change the default format to use for properties of type 441 <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> (possibly further overridden by per-property 442 annotations)</div> 443<dl><dt><span class="strong">Since:</span></dt> 444 <dd>2.8</dd></dl> 445</li> 446</ul> 447<a name="addDeserializers(com.fasterxml.jackson.databind.deser.Deserializers)"> 448<!-- --> 449</a> 450<ul class="blockList"> 451<li class="blockList"> 452<h4>addDeserializers</h4> 453<pre>void addDeserializers(<a href="../../../../com/fasterxml/jackson/databind/deser/Deserializers.html" title="interface in com.fasterxml.jackson.databind.deser">Deserializers</a> d)</pre> 454<div class="block">Method that module can use to register additional deserializers to use for 455 handling types.</div> 456<dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Object that can be called to find deserializer for types supported 457 by module (null returned for non-supported types)</dd></dl> 458</li> 459</ul> 460<a name="addKeyDeserializers(com.fasterxml.jackson.databind.deser.KeyDeserializers)"> 461<!-- --> 462</a> 463<ul class="blockList"> 464<li class="blockList"> 465<h4>addKeyDeserializers</h4> 466<pre>void addKeyDeserializers(<a href="../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a> s)</pre> 467<div class="block">Method that module can use to register additional deserializers to use for 468 handling Map key values (which are separate from value deserializers because 469 they are always serialized from String values)</div> 470</li> 471</ul> 472<a name="addSerializers(com.fasterxml.jackson.databind.ser.Serializers)"> 473<!-- --> 474</a> 475<ul class="blockList"> 476<li class="blockList"> 477<h4>addSerializers</h4> 478<pre>void addSerializers(<a href="../../../../com/fasterxml/jackson/databind/ser/Serializers.html" title="interface in com.fasterxml.jackson.databind.ser">Serializers</a> s)</pre> 479<div class="block">Method that module can use to register additional serializers to use for 480 handling types.</div> 481<dl><dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - Object that can be called to find serializer for types supported 482 by module (null returned for non-supported types)</dd></dl> 483</li> 484</ul> 485<a name="addKeySerializers(com.fasterxml.jackson.databind.ser.Serializers)"> 486<!-- --> 487</a> 488<ul class="blockList"> 489<li class="blockList"> 490<h4>addKeySerializers</h4> 491<pre>void addKeySerializers(<a href="../../../../com/fasterxml/jackson/databind/ser/Serializers.html" title="interface in com.fasterxml.jackson.databind.ser">Serializers</a> s)</pre> 492<div class="block">Method that module can use to register additional serializers to use for 493 handling Map key values (which are separate from value serializers because 494 they must write <code>JsonToken.FIELD_NAME</code> instead of String value).</div> 495</li> 496</ul> 497<a name="addBeanDeserializerModifier(com.fasterxml.jackson.databind.deser.BeanDeserializerModifier)"> 498<!-- --> 499</a> 500<ul class="blockList"> 501<li class="blockList"> 502<h4>addBeanDeserializerModifier</h4> 503<pre>void addBeanDeserializerModifier(<a href="../../../../com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.html" title="class in com.fasterxml.jackson.databind.deser">BeanDeserializerModifier</a> mod)</pre> 504<div class="block">Method that module can use to register additional modifier objects to 505 customize configuration and construction of bean deserializers.</div> 506<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mod</code> - Modifier to register</dd></dl> 507</li> 508</ul> 509<a name="addBeanSerializerModifier(com.fasterxml.jackson.databind.ser.BeanSerializerModifier)"> 510<!-- --> 511</a> 512<ul class="blockList"> 513<li class="blockList"> 514<h4>addBeanSerializerModifier</h4> 515<pre>void addBeanSerializerModifier(<a href="../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializerModifier</a> mod)</pre> 516<div class="block">Method that module can use to register additional modifier objects to 517 customize configuration and construction of bean serializers.</div> 518<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mod</code> - Modifier to register</dd></dl> 519</li> 520</ul> 521<a name="addAbstractTypeResolver(com.fasterxml.jackson.databind.AbstractTypeResolver)"> 522<!-- --> 523</a> 524<ul class="blockList"> 525<li class="blockList"> 526<h4>addAbstractTypeResolver</h4> 527<pre>void addAbstractTypeResolver(<a href="../../../../com/fasterxml/jackson/databind/AbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind">AbstractTypeResolver</a> resolver)</pre> 528<div class="block">Method that module can use to register additional 529 <a href="../../../../com/fasterxml/jackson/databind/AbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind"><code>AbstractTypeResolver</code></a> instance, to handle resolution of 530 abstract to concrete types (either by defaulting, or by materializing).</div> 531<dl><dt><span class="strong">Parameters:</span></dt><dd><code>resolver</code> - Resolver to add.</dd></dl> 532</li> 533</ul> 534<a name="addTypeModifier(com.fasterxml.jackson.databind.type.TypeModifier)"> 535<!-- --> 536</a> 537<ul class="blockList"> 538<li class="blockList"> 539<h4>addTypeModifier</h4> 540<pre>void addTypeModifier(<a href="../../../../com/fasterxml/jackson/databind/type/TypeModifier.html" title="class in com.fasterxml.jackson.databind.type">TypeModifier</a> modifier)</pre> 541<div class="block">Method that module can use to register additional 542 <a href="../../../../com/fasterxml/jackson/databind/type/TypeModifier.html" title="class in com.fasterxml.jackson.databind.type"><code>TypeModifier</code></a> instance, which can augment <a href="../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind"><code>JavaType</code></a> 543 instances constructed by <a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type"><code>TypeFactory</code></a>.</div> 544<dl><dt><span class="strong">Parameters:</span></dt><dd><code>modifier</code> - to add</dd></dl> 545</li> 546</ul> 547<a name="addValueInstantiators(com.fasterxml.jackson.databind.deser.ValueInstantiators)"> 548<!-- --> 549</a> 550<ul class="blockList"> 551<li class="blockList"> 552<h4>addValueInstantiators</h4> 553<pre>void addValueInstantiators(<a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiators.html" title="interface in com.fasterxml.jackson.databind.deser">ValueInstantiators</a> instantiators)</pre> 554<div class="block">Method that module can use to register additional <a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser"><code>ValueInstantiator</code></a>s, 555 by adding <a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiators.html" title="interface in com.fasterxml.jackson.databind.deser"><code>ValueInstantiators</code></a> object that gets called when 556 instantatiator is needed by a deserializer.</div> 557<dl><dt><span class="strong">Parameters:</span></dt><dd><code>instantiators</code> - Object that can provide <a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser"><code>ValueInstantiator</code></a>s for 558 constructing POJO values during deserialization</dd></dl> 559</li> 560</ul> 561<a name="setClassIntrospector(com.fasterxml.jackson.databind.introspect.ClassIntrospector)"> 562<!-- --> 563</a> 564<ul class="blockList"> 565<li class="blockList"> 566<h4>setClassIntrospector</h4> 567<pre>void setClassIntrospector(<a href="../../../../com/fasterxml/jackson/databind/introspect/ClassIntrospector.html" title="class in com.fasterxml.jackson.databind.introspect">ClassIntrospector</a> ci)</pre> 568<div class="block">Method for replacing the default class introspector with a derived class that 569 overrides specific behavior.</div> 570<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ci</code> - Derived class of ClassIntrospector with overriden behavior</dd><dt><span class="strong">Since:</span></dt> 571 <dd>2.2</dd></dl> 572</li> 573</ul> 574<a name="insertAnnotationIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector)"> 575<!-- --> 576</a> 577<ul class="blockList"> 578<li class="blockList"> 579<h4>insertAnnotationIntrospector</h4> 580<pre>void insertAnnotationIntrospector(<a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 581<div class="block">Method for registering specified <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind"><code>AnnotationIntrospector</code></a> as the highest 582 priority introspector (will be chained with existing introspector(s) which 583 will be used as fallbacks for cases this introspector does not handle)</div> 584<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ai</code> - Annotation introspector to register.</dd></dl> 585</li> 586</ul> 587<a name="appendAnnotationIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector)"> 588<!-- --> 589</a> 590<ul class="blockList"> 591<li class="blockList"> 592<h4>appendAnnotationIntrospector</h4> 593<pre>void appendAnnotationIntrospector(<a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 594<div class="block">Method for registering specified <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind"><code>AnnotationIntrospector</code></a> as the lowest 595 priority introspector, chained with existing introspector(s) and called 596 as fallback for cases not otherwise handled.</div> 597<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ai</code> - Annotation introspector to register.</dd></dl> 598</li> 599</ul> 600<a name="registerSubtypes(java.lang.Class...)"> 601<!-- --> 602</a> 603<ul class="blockList"> 604<li class="blockList"> 605<h4>registerSubtypes</h4> 606<pre>void registerSubtypes(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... subtypes)</pre> 607<div class="block">Method for registering specified classes as subtypes (of supertype(s) 608 they have)</div> 609</li> 610</ul> 611<a name="registerSubtypes(com.fasterxml.jackson.databind.jsontype.NamedType...)"> 612<!-- --> 613</a> 614<ul class="blockList"> 615<li class="blockList"> 616<h4>registerSubtypes</h4> 617<pre>void registerSubtypes(<a href="../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</a>... subtypes)</pre> 618<div class="block">Method for registering specified classes as subtypes (of supertype(s) 619 they have), using specified type names.</div> 620</li> 621</ul> 622<a name="setMixInAnnotations(java.lang.Class, java.lang.Class)"> 623<!-- --> 624</a> 625<ul class="blockList"> 626<li class="blockList"> 627<h4>setMixInAnnotations</h4> 628<pre>void setMixInAnnotations(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> target, 629 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> mixinSource)</pre> 630<div class="block">Method used for defining mix-in annotations to use for augmenting 631 specified class or interface. 632 All annotations from 633 <code>mixinSource</code> are taken to override annotations 634 that <code>target</code> (or its supertypes) has. 635<p> 636 Note: mix-ins are registered both for serialization and deserialization 637 (which can be different internally). 638<p> 639 Note: currently only one set of mix-in annotations can be defined for 640 a single class; so if multiple modules register mix-ins, highest 641 priority one (last one registered) will have priority over other modules.</div> 642<dl><dt><span class="strong">Parameters:</span></dt><dd><code>target</code> - Class (or interface) whose annotations to effectively override</dd><dd><code>mixinSource</code> - Class (or interface) whose annotations are to 643 be "added" to target's annotations, overriding as necessary</dd></dl> 644</li> 645</ul> 646<a name="addDeserializationProblemHandler(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler)"> 647<!-- --> 648</a> 649<ul class="blockList"> 650<li class="blockList"> 651<h4>addDeserializationProblemHandler</h4> 652<pre>void addDeserializationProblemHandler(<a href="../../../../com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.html" title="class in com.fasterxml.jackson.databind.deser">DeserializationProblemHandler</a> handler)</pre> 653<div class="block">Add a deserialization problem handler</div> 654<dl><dt><span class="strong">Parameters:</span></dt><dd><code>handler</code> - The deserialization problem handler</dd></dl> 655</li> 656</ul> 657<a name="setNamingStrategy(com.fasterxml.jackson.databind.PropertyNamingStrategy)"> 658<!-- --> 659</a> 660<ul class="blockListLast"> 661<li class="blockList"> 662<h4>setNamingStrategy</h4> 663<pre>void setNamingStrategy(<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> naming)</pre> 664<div class="block">Method that may be used to override naming strategy that is used 665 by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>.</div> 666<dl><dt><span class="strong">Since:</span></dt> 667 <dd>2.3</dd></dl> 668</li> 669</ul> 670</li> 671</ul> 672</li> 673</ul> 674</div> 675</div> 676<!-- ========= END OF CLASS DATA ========= --> 677<!-- ======= START OF BOTTOM NAVBAR ====== --> 678<div class="bottomNav"><a name="navbar_bottom"> 679<!-- --> 680</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 681<!-- --> 682</a> 683<ul class="navList" title="Navigation"> 684<li><a href="../../../../overview-summary.html">Overview</a></li> 685<li><a href="package-summary.html">Package</a></li> 686<li class="navBarCell1Rev">Class</li> 687<li><a href="class-use/Module.SetupContext.html">Use</a></li> 688<li><a href="package-tree.html">Tree</a></li> 689<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 690<li><a href="../../../../index-all.html">Index</a></li> 691<li><a href="../../../../help-doc.html">Help</a></li> 692</ul> 693</div> 694<div class="subNav"> 695<ul class="navList"> 696<li><a href="../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 697<li><a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 698</ul> 699<ul class="navList"> 700<li><a href="../../../../index.html?com/fasterxml/jackson/databind/Module.SetupContext.html" target="_top">Frames</a></li> 701<li><a href="Module.SetupContext.html" target="_top">No Frames</a></li> 702</ul> 703<ul class="navList" id="allclasses_navbar_bottom"> 704<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 705</ul> 706<div> 707<script type="text/javascript"><!-- 708 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 709 if(window==top) { 710 allClassesLink.style.display = "block"; 711 } 712 else { 713 allClassesLink.style.display = "none"; 714 } 715 //--> 716</script> 717</div> 718<div> 719<ul class="subNavList"> 720<li>Summary: </li> 721<li>Nested | </li> 722<li>Field | </li> 723<li>Constr | </li> 724<li><a href="#method_summary">Method</a></li> 725</ul> 726<ul class="subNavList"> 727<li>Detail: </li> 728<li>Field | </li> 729<li>Constr | </li> 730<li><a href="#method_detail">Method</a></li> 731</ul> 732</div> 733<a name="skip-navbar_bottom"> 734<!-- --> 735</a></div> 736<!-- ======== END OF BOTTOM NAVBAR ======= --> 737<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 738</body> 739</html> 740