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 Fri Jan 15 20:28:40 PST 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>Module.SetupContext (jackson-databind 2.7.0 API)</title> 8<meta name="date" content="2016-01-15"> 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.7.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="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> 204<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getMapperVersion()">getMapperVersion</a></strong>()</code> 205<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> 206 that implements this context.</div> 207</td> 208</tr> 209<tr class="altColor"> 210<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> 211<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getOwner()">getOwner</a></strong>()</code> 212<div class="block">Fallback access method that allows modules to refer to the 213 <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> that provided this context.</div> 214</td> 215</tr> 216<tr class="rowColor"> 217<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> 218<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/Module.SetupContext.html#getTypeFactory()">getTypeFactory</a></strong>()</code> 219<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 220 by the context.</div> 221</td> 222</tr> 223<tr class="altColor"> 224<td class="colFirst"><code>void</code></td> 225<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> 226<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 227 priority introspector (will be chained with existing introspector(s) which 228 will be used as fallbacks for cases this introspector does not handle)</div> 229</td> 230</tr> 231<tr class="rowColor"> 232<td class="colFirst"><code>boolean</code></td> 233<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> 234</tr> 235<tr class="altColor"> 236<td class="colFirst"><code>boolean</code></td> 237<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> 238</tr> 239<tr class="rowColor"> 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.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> 242</tr> 243<tr class="altColor"> 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.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> 246</tr> 247<tr class="rowColor"> 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.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> 250</tr> 251<tr class="altColor"> 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.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> 254</tr> 255<tr class="rowColor"> 256<td class="colFirst"><code>void</code></td> 257<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> 258<div class="block">Method for registering specified classes as subtypes (of supertype(s) 259 they have)</div> 260</td> 261</tr> 262<tr class="altColor"> 263<td class="colFirst"><code>void</code></td> 264<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> 265<div class="block">Method for registering specified classes as subtypes (of supertype(s) 266 they have), using specified type names.</div> 267</td> 268</tr> 269<tr class="rowColor"> 270<td class="colFirst"><code>void</code></td> 271<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> 272<div class="block">Method for replacing the default class introspector with a derived class that 273 overrides specific behavior.</div> 274</td> 275</tr> 276<tr class="altColor"> 277<td class="colFirst"><code>void</code></td> 278<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, 279 <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> 280<div class="block">Method used for defining mix-in annotations to use for augmenting 281 specified class or interface.</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#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> 287<div class="block">Method that may be used to override naming strategy that is used 288 by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>.</div> 289</td> 290</tr> 291</table> 292</li> 293</ul> 294</li> 295</ul> 296</div> 297<div class="details"> 298<ul class="blockList"> 299<li class="blockList"> 300<!-- ============ METHOD DETAIL ========== --> 301<ul class="blockList"> 302<li class="blockList"><a name="method_detail"> 303<!-- --> 304</a> 305<h3>Method Detail</h3> 306<a name="getMapperVersion()"> 307<!-- --> 308</a> 309<ul class="blockList"> 310<li class="blockList"> 311<h4>getMapperVersion</h4> 312<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> 313<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> 314 that implements this context. Modules can use this to choose 315 different settings or initialization order; or even decide to fail 316 set up completely if version is compatible with module.</div> 317</li> 318</ul> 319<a name="getOwner()"> 320<!-- --> 321</a> 322<ul class="blockList"> 323<li class="blockList"> 324<h4>getOwner</h4> 325<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> 326<div class="block">Fallback access method that allows modules to refer to the 327 <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> that provided this context. 328 It should NOT be needed by most modules; and ideally should 329 not be used -- however, there may be cases where this may 330 be necessary due to various design constraints. 331<p> 332 NOTE: use of this method is discouraged, as it allows access to 333 things Modules typically should not modify. It is included, however, 334 to allow access to new features in cases where Module API 335 has not yet been extended, or there are oversights. 336<p> 337 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>; 338 however, instance will always be of that type. 339 This is why return value is declared generic, to allow caller to 340 specify context to often avoid casting.</div> 341<dl><dt><span class="strong">Since:</span></dt> 342 <dd>2.0</dd></dl> 343</li> 344</ul> 345<a name="getTypeFactory()"> 346<!-- --> 347</a> 348<ul class="blockList"> 349<li class="blockList"> 350<h4>getTypeFactory</h4> 351<pre><a href="../../../../com/fasterxml/jackson/databind/type/TypeFactory.html" title="class in com.fasterxml.jackson.databind.type">TypeFactory</a> getTypeFactory()</pre> 352<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 353 by the context. 354<p> 355 NOTE: since it is possible that other modules might change or replace 356 TypeFactory, use of this method adds order-dependency for registrations.</div> 357<dl><dt><span class="strong">Since:</span></dt> 358 <dd>2.0</dd></dl> 359</li> 360</ul> 361<a name="isEnabled(com.fasterxml.jackson.databind.MapperFeature)"> 362<!-- --> 363</a> 364<ul class="blockList"> 365<li class="blockList"> 366<h4>isEnabled</h4> 367<pre>boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> f)</pre> 368</li> 369</ul> 370<a name="isEnabled(com.fasterxml.jackson.databind.DeserializationFeature)"> 371<!-- --> 372</a> 373<ul class="blockList"> 374<li class="blockList"> 375<h4>isEnabled</h4> 376<pre>boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html" title="enum in com.fasterxml.jackson.databind">DeserializationFeature</a> f)</pre> 377</li> 378</ul> 379<a name="isEnabled(com.fasterxml.jackson.databind.SerializationFeature)"> 380<!-- --> 381</a> 382<ul class="blockList"> 383<li class="blockList"> 384<h4>isEnabled</h4> 385<pre>boolean isEnabled(<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> f)</pre> 386</li> 387</ul> 388<a name="isEnabled(com.fasterxml.jackson.core.JsonFactory.Feature)"> 389<!-- --> 390</a> 391<ul class="blockList"> 392<li class="blockList"> 393<h4>isEnabled</h4> 394<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> 395</li> 396</ul> 397<a name="isEnabled(com.fasterxml.jackson.core.JsonParser.Feature)"> 398<!-- --> 399</a> 400<ul class="blockList"> 401<li class="blockList"> 402<h4>isEnabled</h4> 403<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> 404</li> 405</ul> 406<a name="isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature)"> 407<!-- --> 408</a> 409<ul class="blockList"> 410<li class="blockList"> 411<h4>isEnabled</h4> 412<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> 413</li> 414</ul> 415<a name="addDeserializers(com.fasterxml.jackson.databind.deser.Deserializers)"> 416<!-- --> 417</a> 418<ul class="blockList"> 419<li class="blockList"> 420<h4>addDeserializers</h4> 421<pre>void addDeserializers(<a href="../../../../com/fasterxml/jackson/databind/deser/Deserializers.html" title="interface in com.fasterxml.jackson.databind.deser">Deserializers</a> d)</pre> 422<div class="block">Method that module can use to register additional deserializers to use for 423 handling types.</div> 424<dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - Object that can be called to find deserializer for types supported 425 by module (null returned for non-supported types)</dd></dl> 426</li> 427</ul> 428<a name="addKeyDeserializers(com.fasterxml.jackson.databind.deser.KeyDeserializers)"> 429<!-- --> 430</a> 431<ul class="blockList"> 432<li class="blockList"> 433<h4>addKeyDeserializers</h4> 434<pre>void addKeyDeserializers(<a href="../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a> s)</pre> 435<div class="block">Method that module can use to register additional deserializers to use for 436 handling Map key values (which are separate from value deserializers because 437 they are always serialized from String values)</div> 438</li> 439</ul> 440<a name="addSerializers(com.fasterxml.jackson.databind.ser.Serializers)"> 441<!-- --> 442</a> 443<ul class="blockList"> 444<li class="blockList"> 445<h4>addSerializers</h4> 446<pre>void addSerializers(<a href="../../../../com/fasterxml/jackson/databind/ser/Serializers.html" title="interface in com.fasterxml.jackson.databind.ser">Serializers</a> s)</pre> 447<div class="block">Method that module can use to register additional serializers to use for 448 handling types.</div> 449<dl><dt><span class="strong">Parameters:</span></dt><dd><code>s</code> - Object that can be called to find serializer for types supported 450 by module (null returned for non-supported types)</dd></dl> 451</li> 452</ul> 453<a name="addKeySerializers(com.fasterxml.jackson.databind.ser.Serializers)"> 454<!-- --> 455</a> 456<ul class="blockList"> 457<li class="blockList"> 458<h4>addKeySerializers</h4> 459<pre>void addKeySerializers(<a href="../../../../com/fasterxml/jackson/databind/ser/Serializers.html" title="interface in com.fasterxml.jackson.databind.ser">Serializers</a> s)</pre> 460<div class="block">Method that module can use to register additional serializers to use for 461 handling Map key values (which are separate from value serializers because 462 they must write <code>JsonToken.FIELD_NAME</code> instead of String value).</div> 463</li> 464</ul> 465<a name="addBeanDeserializerModifier(com.fasterxml.jackson.databind.deser.BeanDeserializerModifier)"> 466<!-- --> 467</a> 468<ul class="blockList"> 469<li class="blockList"> 470<h4>addBeanDeserializerModifier</h4> 471<pre>void addBeanDeserializerModifier(<a href="../../../../com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.html" title="class in com.fasterxml.jackson.databind.deser">BeanDeserializerModifier</a> mod)</pre> 472<div class="block">Method that module can use to register additional modifier objects to 473 customize configuration and construction of bean deserializers.</div> 474<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mod</code> - Modifier to register</dd></dl> 475</li> 476</ul> 477<a name="addBeanSerializerModifier(com.fasterxml.jackson.databind.ser.BeanSerializerModifier)"> 478<!-- --> 479</a> 480<ul class="blockList"> 481<li class="blockList"> 482<h4>addBeanSerializerModifier</h4> 483<pre>void addBeanSerializerModifier(<a href="../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializerModifier</a> mod)</pre> 484<div class="block">Method that module can use to register additional modifier objects to 485 customize configuration and construction of bean serializers.</div> 486<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mod</code> - Modifier to register</dd></dl> 487</li> 488</ul> 489<a name="addAbstractTypeResolver(com.fasterxml.jackson.databind.AbstractTypeResolver)"> 490<!-- --> 491</a> 492<ul class="blockList"> 493<li class="blockList"> 494<h4>addAbstractTypeResolver</h4> 495<pre>void addAbstractTypeResolver(<a href="../../../../com/fasterxml/jackson/databind/AbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind">AbstractTypeResolver</a> resolver)</pre> 496<div class="block">Method that module can use to register additional 497 <a href="../../../../com/fasterxml/jackson/databind/AbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind"><code>AbstractTypeResolver</code></a> instance, to handle resolution of 498 abstract to concrete types (either by defaulting, or by materializing).</div> 499<dl><dt><span class="strong">Parameters:</span></dt><dd><code>resolver</code> - Resolver to add.</dd></dl> 500</li> 501</ul> 502<a name="addTypeModifier(com.fasterxml.jackson.databind.type.TypeModifier)"> 503<!-- --> 504</a> 505<ul class="blockList"> 506<li class="blockList"> 507<h4>addTypeModifier</h4> 508<pre>void addTypeModifier(<a href="../../../../com/fasterxml/jackson/databind/type/TypeModifier.html" title="class in com.fasterxml.jackson.databind.type">TypeModifier</a> modifier)</pre> 509<div class="block">Method that module can use to register additional 510 <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> 511 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> 512<dl><dt><span class="strong">Parameters:</span></dt><dd><code>modifier</code> - to add</dd></dl> 513</li> 514</ul> 515<a name="addValueInstantiators(com.fasterxml.jackson.databind.deser.ValueInstantiators)"> 516<!-- --> 517</a> 518<ul class="blockList"> 519<li class="blockList"> 520<h4>addValueInstantiators</h4> 521<pre>void addValueInstantiators(<a href="../../../../com/fasterxml/jackson/databind/deser/ValueInstantiators.html" title="interface in com.fasterxml.jackson.databind.deser">ValueInstantiators</a> instantiators)</pre> 522<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, 523 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 524 instantatiator is needed by a deserializer.</div> 525<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 526 constructing POJO values during deserialization</dd></dl> 527</li> 528</ul> 529<a name="setClassIntrospector(com.fasterxml.jackson.databind.introspect.ClassIntrospector)"> 530<!-- --> 531</a> 532<ul class="blockList"> 533<li class="blockList"> 534<h4>setClassIntrospector</h4> 535<pre>void setClassIntrospector(<a href="../../../../com/fasterxml/jackson/databind/introspect/ClassIntrospector.html" title="class in com.fasterxml.jackson.databind.introspect">ClassIntrospector</a> ci)</pre> 536<div class="block">Method for replacing the default class introspector with a derived class that 537 overrides specific behavior.</div> 538<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> 539 <dd>2.2</dd></dl> 540</li> 541</ul> 542<a name="insertAnnotationIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector)"> 543<!-- --> 544</a> 545<ul class="blockList"> 546<li class="blockList"> 547<h4>insertAnnotationIntrospector</h4> 548<pre>void insertAnnotationIntrospector(<a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 549<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 550 priority introspector (will be chained with existing introspector(s) which 551 will be used as fallbacks for cases this introspector does not handle)</div> 552<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ai</code> - Annotation introspector to register.</dd></dl> 553</li> 554</ul> 555<a name="appendAnnotationIntrospector(com.fasterxml.jackson.databind.AnnotationIntrospector)"> 556<!-- --> 557</a> 558<ul class="blockList"> 559<li class="blockList"> 560<h4>appendAnnotationIntrospector</h4> 561<pre>void appendAnnotationIntrospector(<a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 562<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 563 priority introspector, chained with existing introspector(s) and called 564 as fallback for cases not otherwise handled.</div> 565<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ai</code> - Annotation introspector to register.</dd></dl> 566</li> 567</ul> 568<a name="registerSubtypes(java.lang.Class...)"> 569<!-- --> 570</a> 571<ul class="blockList"> 572<li class="blockList"> 573<h4>registerSubtypes</h4> 574<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> 575<div class="block">Method for registering specified classes as subtypes (of supertype(s) 576 they have)</div> 577</li> 578</ul> 579<a name="registerSubtypes(com.fasterxml.jackson.databind.jsontype.NamedType...)"> 580<!-- --> 581</a> 582<ul class="blockList"> 583<li class="blockList"> 584<h4>registerSubtypes</h4> 585<pre>void registerSubtypes(<a href="../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</a>... subtypes)</pre> 586<div class="block">Method for registering specified classes as subtypes (of supertype(s) 587 they have), using specified type names.</div> 588</li> 589</ul> 590<a name="setMixInAnnotations(java.lang.Class, java.lang.Class)"> 591<!-- --> 592</a> 593<ul class="blockList"> 594<li class="blockList"> 595<h4>setMixInAnnotations</h4> 596<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, 597 <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> 598<div class="block">Method used for defining mix-in annotations to use for augmenting 599 specified class or interface. 600 All annotations from 601 <code>mixinSource</code> are taken to override annotations 602 that <code>target</code> (or its supertypes) has. 603<p> 604 Note: mix-ins are registered both for serialization and deserialization 605 (which can be different internally). 606<p> 607 Note: currently only one set of mix-in annotations can be defined for 608 a single class; so if multiple modules register mix-ins, highest 609 priority one (last one registered) will have priority over other modules.</div> 610<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 611 be "added" to target's annotations, overriding as necessary</dd></dl> 612</li> 613</ul> 614<a name="addDeserializationProblemHandler(com.fasterxml.jackson.databind.deser.DeserializationProblemHandler)"> 615<!-- --> 616</a> 617<ul class="blockList"> 618<li class="blockList"> 619<h4>addDeserializationProblemHandler</h4> 620<pre>void addDeserializationProblemHandler(<a href="../../../../com/fasterxml/jackson/databind/deser/DeserializationProblemHandler.html" title="class in com.fasterxml.jackson.databind.deser">DeserializationProblemHandler</a> handler)</pre> 621<div class="block">Add a deserialization problem handler</div> 622<dl><dt><span class="strong">Parameters:</span></dt><dd><code>handler</code> - The deserialization problem handler</dd></dl> 623</li> 624</ul> 625<a name="setNamingStrategy(com.fasterxml.jackson.databind.PropertyNamingStrategy)"> 626<!-- --> 627</a> 628<ul class="blockListLast"> 629<li class="blockList"> 630<h4>setNamingStrategy</h4> 631<pre>void setNamingStrategy(<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> naming)</pre> 632<div class="block">Method that may be used to override naming strategy that is used 633 by <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>.</div> 634<dl><dt><span class="strong">Since:</span></dt> 635 <dd>2.3</dd></dl> 636</li> 637</ul> 638</li> 639</ul> 640</li> 641</ul> 642</div> 643</div> 644<!-- ========= END OF CLASS DATA ========= --> 645<!-- ======= START OF BOTTOM NAVBAR ====== --> 646<div class="bottomNav"><a name="navbar_bottom"> 647<!-- --> 648</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 649<!-- --> 650</a> 651<ul class="navList" title="Navigation"> 652<li><a href="../../../../overview-summary.html">Overview</a></li> 653<li><a href="package-summary.html">Package</a></li> 654<li class="navBarCell1Rev">Class</li> 655<li><a href="class-use/Module.SetupContext.html">Use</a></li> 656<li><a href="package-tree.html">Tree</a></li> 657<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 658<li><a href="../../../../index-all.html">Index</a></li> 659<li><a href="../../../../help-doc.html">Help</a></li> 660</ul> 661</div> 662<div class="subNav"> 663<ul class="navList"> 664<li><a href="../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 665<li><a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 666</ul> 667<ul class="navList"> 668<li><a href="../../../../index.html?com/fasterxml/jackson/databind/Module.SetupContext.html" target="_top">Frames</a></li> 669<li><a href="Module.SetupContext.html" target="_top">No Frames</a></li> 670</ul> 671<ul class="navList" id="allclasses_navbar_bottom"> 672<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 673</ul> 674<div> 675<script type="text/javascript"><!-- 676 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 677 if(window==top) { 678 allClassesLink.style.display = "block"; 679 } 680 else { 681 allClassesLink.style.display = "none"; 682 } 683 //--> 684</script> 685</div> 686<div> 687<ul class="subNavList"> 688<li>Summary: </li> 689<li>Nested | </li> 690<li>Field | </li> 691<li>Constr | </li> 692<li><a href="#method_summary">Method</a></li> 693</ul> 694<ul class="subNavList"> 695<li>Detail: </li> 696<li>Field | </li> 697<li>Constr | </li> 698<li><a href="#method_detail">Method</a></li> 699</ul> 700</div> 701<a name="skip-navbar_bottom"> 702<!-- --> 703</a></div> 704<!-- ======== END OF BOTTOM NAVBAR ======= --> 705<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 706</body> 707</html> 708