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