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_25) on Thu Jan 01 17:43:58 PST 2015 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>DefaultSerializerProvider (jackson-databind 2.5.0 API)</title> 8<meta name="date" content="2015-01-01"> 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="DefaultSerializerProvider (jackson-databind 2.5.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/DefaultSerializerProvider.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/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.Impl.html" title="class in com.fasterxml.jackson.databind.ser"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" target="_top">Frames</a></li> 45<li><a href="DefaultSerializerProvider.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><a href="#nested_class_summary">Nested</a> | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </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.ser</div> 84<h2 title="Class DefaultSerializerProvider" class="title">Class DefaultSerializerProvider</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li><a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.DatabindContext</a></li> 92<li> 93<ul class="inheritance"> 94<li><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.SerializerProvider</a></li> 95<li> 96<ul class="inheritance"> 97<li>com.fasterxml.jackson.databind.ser.DefaultSerializerProvider</li> 98</ul> 99</li> 100</ul> 101</li> 102</ul> 103</li> 104</ul> 105<div class="description"> 106<ul class="blockList"> 107<li class="blockList"> 108<dl> 109<dt>All Implemented Interfaces:</dt> 110<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 111</dl> 112<dl> 113<dt>Direct Known Subclasses:</dt> 114<dd><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.Impl.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider.Impl</a></dd> 115</dl> 116<hr> 117<br> 118<pre>public abstract class <span class="strong">DefaultSerializerProvider</span> 119extends <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> 120implements <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 121<div class="block">Standard implementation used by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>: 122 adds methods only exposed to <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>, 123 as well as constructors. 124<p> 125 Note that class is abstract just because it does not 126 define <a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#createInstance(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)"><code>createInstance(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)</code></a> method. 127<p> 128 Also note that all custom <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><code>SerializerProvider</code></a> 129 implementations must sub-class this class: <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> 130 requires this type, not basic provider type.</div> 131<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.ser.DefaultSerializerProvider">Serialized Form</a></dd></dl> 132</li> 133</ul> 134</div> 135<div class="summary"> 136<ul class="blockList"> 137<li class="blockList"> 138<!-- ======== NESTED CLASS SUMMARY ======== --> 139<ul class="blockList"> 140<li class="blockList"><a name="nested_class_summary"> 141<!-- --> 142</a> 143<h3>Nested Class Summary</h3> 144<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 145<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 146<tr> 147<th class="colFirst" scope="col">Modifier and Type</th> 148<th class="colLast" scope="col">Class and Description</th> 149</tr> 150<tr class="altColor"> 151<td class="colFirst"><code>static class </code></td> 152<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.Impl.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider.Impl</a></strong></code> 153<div class="block">Concrete implementation that defines factory method(s), 154 defined as final.</div> 155</td> 156</tr> 157</table> 158</li> 159</ul> 160<!-- =========== FIELD SUMMARY =========== --> 161<ul class="blockList"> 162<li class="blockList"><a name="field_summary"> 163<!-- --> 164</a> 165<h3>Field Summary</h3> 166<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 167<caption><span>Fields</span><span class="tabEnd"> </span></caption> 168<tr> 169<th class="colFirst" scope="col">Modifier and Type</th> 170<th class="colLast" scope="col">Field and Description</th> 171</tr> 172<tr class="altColor"> 173<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a><com.fasterxml.jackson.annotation.ObjectIdGenerator<?>></code></td> 174<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#_objectIdGenerators">_objectIdGenerators</a></strong></code> </td> 175</tr> 176<tr class="rowColor"> 177<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="../../../../../com/fasterxml/jackson/databind/ser/impl/WritableObjectId.html" title="class in com.fasterxml.jackson.databind.ser.impl">WritableObjectId</a>></code></td> 178<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#_seenObjectIds">_seenObjectIds</a></strong></code> 179<div class="block">Per-serialization map Object Ids that have seen so far, iff 180 Object Id handling is enabled.</div> 181</td> 182</tr> 183</table> 184<ul class="blockList"> 185<li class="blockList"><a name="fields_inherited_from_class_com.fasterxml.jackson.databind.SerializerProvider"> 186<!-- --> 187</a> 188<h3>Fields inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a></h3> 189<code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_attributes">_attributes</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_config">_config</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_dateFormat">_dateFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_keySerializer">_keySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_knownSerializers">_knownSerializers</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_nullKeySerializer">_nullKeySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_nullValueSerializer">_nullValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_rootNames">_rootNames</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_serializationView">_serializationView</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_serializerCache">_serializerCache</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_serializerFactory">_serializerFactory</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_stdNullValueSerializer">_stdNullValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_unknownTypeSerializer">_unknownTypeSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#CACHE_UNKNOWN_MAPPINGS">CACHE_UNKNOWN_MAPPINGS</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#DEFAULT_NULL_KEY_SERIALIZER">DEFAULT_NULL_KEY_SERIALIZER</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#DEFAULT_UNKNOWN_SERIALIZER">DEFAULT_UNKNOWN_SERIALIZER</a></code></li> 190</ul> 191</li> 192</ul> 193<!-- ======== CONSTRUCTOR SUMMARY ======== --> 194<ul class="blockList"> 195<li class="blockList"><a name="constructor_summary"> 196<!-- --> 197</a> 198<h3>Constructor Summary</h3> 199<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 200<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 201<tr> 202<th class="colFirst" scope="col">Modifier</th> 203<th class="colLast" scope="col">Constructor and Description</th> 204</tr> 205<tr class="altColor"> 206<td class="colFirst"><code>protected </code></td> 207<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#DefaultSerializerProvider()">DefaultSerializerProvider</a></strong>()</code> </td> 208</tr> 209<tr class="rowColor"> 210<td class="colFirst"><code>protected </code></td> 211<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#DefaultSerializerProvider(com.fasterxml.jackson.databind.ser.DefaultSerializerProvider)">DefaultSerializerProvider</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> src)</code> </td> 212</tr> 213<tr class="altColor"> 214<td class="colFirst"><code>protected </code></td> 215<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#DefaultSerializerProvider(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)">DefaultSerializerProvider</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> src, 216 <a href="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 217 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> f)</code> </td> 218</tr> 219</table> 220</li> 221</ul> 222<!-- ========== METHOD SUMMARY =========== --> 223<ul class="blockList"> 224<li class="blockList"><a name="method_summary"> 225<!-- --> 226</a> 227<h3>Method Summary</h3> 228<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 229<caption><span>Methods</span><span class="tabEnd"> </span></caption> 230<tr> 231<th class="colFirst" scope="col">Modifier and Type</th> 232<th class="colLast" scope="col">Method and Description</th> 233</tr> 234<tr class="altColor"> 235<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="../../../../../com/fasterxml/jackson/databind/ser/impl/WritableObjectId.html" title="class in com.fasterxml.jackson.databind.ser.impl">WritableObjectId</a>></code></td> 236<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#_createObjectIdMap()">_createObjectIdMap</a></strong>()</code> 237<div class="block">Overridable helper method used for creating <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> 238 used for storing mappings from serializable objects to their 239 Object Ids.</div> 240</td> 241</tr> 242<tr class="rowColor"> 243<td class="colFirst"><code>protected void</code></td> 244<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#_serializeNull(com.fasterxml.jackson.core.JsonGenerator)">_serializeNull</a></strong>(com.fasterxml.jackson.core.JsonGenerator gen)</code> 245<div class="block">Helper method called when root value to serialize is null</div> 246</td> 247</tr> 248<tr class="altColor"> 249<td class="colFirst"><code>void</code></td> 250<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)">acceptJsonFormatVisitor</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> javaType, 251 <a href="../../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitorWrapper</a> visitor)</code> 252<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 253 to to expose the format of the given to to the given visitor</div> 254</td> 255</tr> 256<tr class="rowColor"> 257<td class="colFirst"><code>int</code></td> 258<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#cachedSerializersCount()">cachedSerializersCount</a></strong>()</code> 259<div class="block">Method that can be used to determine how many serializers this 260 provider is caching currently 261 (if it does caching: default implementation does) 262 Exact count depends on what kind of serializers get cached; 263 default implementation caches all serializers, including ones that 264 are eagerly constructed (for optimal access speed)</div> 265</td> 266</tr> 267<tr class="altColor"> 268<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a></code></td> 269<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#copy()">copy</a></strong>()</code> 270<div class="block">Method needed to ensure that <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#copy()"><code>ObjectMapper.copy()</code></a> will work 271 properly; specifically, that caches are cleared, but settings 272 will otherwise remain identical; and that no sharing of state 273 occurs.</div> 274</td> 275</tr> 276<tr class="rowColor"> 277<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a></code></td> 278<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#createInstance(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)">createInstance</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 279 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> jsf)</code> 280<div class="block">Overridable method, used to create a non-blueprint instances from the blueprint.</div> 281</td> 282</tr> 283<tr class="altColor"> 284<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/ser/impl/WritableObjectId.html" title="class in com.fasterxml.jackson.databind.ser.impl">WritableObjectId</a></code></td> 285<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#findObjectId(java.lang.Object, com.fasterxml.jackson.annotation.ObjectIdGenerator)">findObjectId</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> forPojo, 286 com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generatorType)</code> 287<div class="block">Method called to find the Object Id for given POJO, if one 288 has been generated.</div> 289</td> 290</tr> 291<tr class="rowColor"> 292<td class="colFirst"><code>void</code></td> 293<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#flushCachedSerializers()">flushCachedSerializers</a></strong>()</code> 294<div class="block">Method that will drop all serializers currently cached by this provider.</div> 295</td> 296</tr> 297<tr class="altColor"> 298<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/jsonschema/JsonSchema.html" title="class in com.fasterxml.jackson.databind.jsonschema">JsonSchema</a></code></td> 299<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#generateJsonSchema(java.lang.Class)">generateJsonSchema</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><?> type)</code> 300<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 301 to generate <a href="http://json-schema.org/">JSON schema</a> for 302 given type.</div> 303</td> 304</tr> 305<tr class="rowColor"> 306<td class="colFirst"><code>boolean</code></td> 307<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#hasSerializerFor(java.lang.Class, java.util.concurrent.atomic.AtomicReference)">hasSerializerFor</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><?> cls, 308 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>> cause)</code> 309<div class="block">Method that can be called to see if this serializer provider 310 can find a serializer for an instance of given class.</div> 311</td> 312</tr> 313<tr class="altColor"> 314<td class="colFirst"><code>void</code></td> 315<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializePolymorphic</a></strong>(com.fasterxml.jackson.core.JsonGenerator gen, 316 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 317 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer)</code> 318<div class="block">Alternate serialization call used for polymorphic types, when <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> 319 is already known, but not actual value serializer.</div> 320</td> 321</tr> 322<tr class="rowColor"> 323<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></code></td> 324<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#serializerInstance(com.fasterxml.jackson.databind.introspect.Annotated, java.lang.Object)">serializerInstance</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/introspect/Annotated.html" title="class in com.fasterxml.jackson.databind.introspect">Annotated</a> annotated, 325 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> serDef)</code> 326<div class="block">Method that can be called to construct and configure serializer instance, 327 either given a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a> to instantiate (with default constructor), 328 or an uninitialized serializer instance.</div> 329</td> 330</tr> 331<tr class="altColor"> 332<td class="colFirst"><code>void</code></td> 333<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)">serializeValue</a></strong>(com.fasterxml.jackson.core.JsonGenerator gen, 334 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code> 335<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 336 for serializing given value, using serializers that 337 this provider has access to (via caching and/or creating new serializers 338 as need be).</div> 339</td> 340</tr> 341<tr class="rowColor"> 342<td class="colFirst"><code>void</code></td> 343<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.JavaType)">serializeValue</a></strong>(com.fasterxml.jackson.core.JsonGenerator gen, 344 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 345 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType)</code> 346<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 347 for serializing given value (assumed to be of specified root type, 348 instead of runtime type of value), 349 using serializers that 350 this provider has access to (via caching and/or creating new serializers 351 as need be),</div> 352</td> 353</tr> 354<tr class="altColor"> 355<td class="colFirst"><code>void</code></td> 356<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)">serializeValue</a></strong>(com.fasterxml.jackson.core.JsonGenerator gen, 357 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 358 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 359 <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> ser)</code> 360<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 361 for serializing given value (assumed to be of specified root type, 362 instead of runtime type of value), when it may know specific 363 <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> to use.</div> 364</td> 365</tr> 366</table> 367<ul class="blockList"> 368<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.SerializerProvider"> 369<!-- --> 370</a> 371<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a></h3> 372<code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_createAndCacheUntypedSerializer(java.lang.Class)">_createAndCacheUntypedSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_createAndCacheUntypedSerializer(com.fasterxml.jackson.databind.JavaType)">_createAndCacheUntypedSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_createUntypedSerializer(com.fasterxml.jackson.databind.JavaType)">_createUntypedSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_dateFormat()">_dateFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_findExplicitUntypedSerializer(java.lang.Class)">_findExplicitUntypedSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_handleContextualResolvable(com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.BeanProperty)">_handleContextualResolvable</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_handleResolvable(com.fasterxml.jackson.databind.JsonSerializer)">_handleResolvable</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#_reportIncompatibleRootType(java.lang.Object, com.fasterxml.jackson.databind.JavaType)">_reportIncompatibleRootType</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeDateKey(java.util.Date, com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeDateKey</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeDateKey(long, com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeDateKey</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeDateValue(java.util.Date, com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeDateValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeDateValue(long, com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeDateValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeField(java.lang.String, java.lang.Object, com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeField</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeNull(com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#defaultSerializeValue(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator)">defaultSerializeValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findKeySerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.BeanProperty)">findKeySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findNullKeySerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.BeanProperty)">findNullKeySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findNullValueSerializer(com.fasterxml.jackson.databind.BeanProperty)">findNullValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findPrimaryPropertySerializer(java.lang.Class, com.fasterxml.jackson.databind.BeanProperty)">findPrimaryPropertySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findPrimaryPropertySerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.BeanProperty)">findPrimaryPropertySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findTypedValueSerializer(java.lang.Class, boolean, com.fasterxml.jackson.databind.BeanProperty)">findTypedValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findTypedValueSerializer(com.fasterxml.jackson.databind.JavaType, boolean, com.fasterxml.jackson.databind.BeanProperty)">findTypedValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(java.lang.Class)">findValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(java.lang.Class, com.fasterxml.jackson.databind.BeanProperty)">findValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(com.fasterxml.jackson.databind.JavaType)">findValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.BeanProperty)">findValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getActiveView()">getActiveView</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getAnnotationIntrospector()">getAnnotationIntrospector</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getAttribute(java.lang.Object)">getAttribute</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getConfig()">getConfig</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getDefaultNullKeySerializer()">getDefaultNullKeySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getDefaultNullValueSerializer()">getDefaultNullValueSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getFilterProvider()">getFilterProvider</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getLocale()">getLocale</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getSerializationView()">getSerializationView</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getTimeZone()">getTimeZone</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getTypeFactory()">getTypeFactory</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#getUnknownTypeSerializer(java.lang.Class)">getUnknownTypeSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#handlePrimaryContextualization(com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.BeanProperty)">handlePrimaryContextualization</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#handleSecondaryContextualization(com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.BeanProperty)">handleSecondaryContextualization</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#hasSerializationFeatures(int)">hasSerializationFeatures</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#isEnabled(com.fasterxml.jackson.databind.SerializationFeature)">isEnabled</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#isUnknownTypeSerializer(com.fasterxml.jackson.databind.JsonSerializer)">isUnknownTypeSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#setAttribute(java.lang.Object, java.lang.Object)">setAttribute</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#setDefaultKeySerializer(com.fasterxml.jackson.databind.JsonSerializer)">setDefaultKeySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#setNullKeySerializer(com.fasterxml.jackson.databind.JsonSerializer)">setNullKeySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#setNullValueSerializer(com.fasterxml.jackson.databind.JsonSerializer)">setNullValueSerializer</a></code></li> 373</ul> 374<ul class="blockList"> 375<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.DatabindContext"> 376<!-- --> 377</a> 378<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html" title="class in com.fasterxml.jackson.databind">DatabindContext</a></h3> 379<code><a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#canOverrideAccessModifiers()">canOverrideAccessModifiers</a>, <a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#constructSpecializedType(com.fasterxml.jackson.databind.JavaType, java.lang.Class)">constructSpecializedType</a>, <a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#constructType(java.lang.reflect.Type)">constructType</a>, <a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#converterInstance(com.fasterxml.jackson.databind.introspect.Annotated, java.lang.Object)">converterInstance</a>, <a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#isEnabled(com.fasterxml.jackson.databind.MapperFeature)">isEnabled</a>, <a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#objectIdGeneratorInstance(com.fasterxml.jackson.databind.introspect.Annotated, com.fasterxml.jackson.databind.introspect.ObjectIdInfo)">objectIdGeneratorInstance</a>, <a href="../../../../../com/fasterxml/jackson/databind/DatabindContext.html#objectIdResolverInstance(com.fasterxml.jackson.databind.introspect.Annotated, com.fasterxml.jackson.databind.introspect.ObjectIdInfo)">objectIdResolverInstance</a></code></li> 380</ul> 381<ul class="blockList"> 382<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 383<!-- --> 384</a> 385<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 386<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 387</ul> 388</li> 389</ul> 390</li> 391</ul> 392</div> 393<div class="details"> 394<ul class="blockList"> 395<li class="blockList"> 396<!-- ============ FIELD DETAIL =========== --> 397<ul class="blockList"> 398<li class="blockList"><a name="field_detail"> 399<!-- --> 400</a> 401<h3>Field Detail</h3> 402<a name="_seenObjectIds"> 403<!-- --> 404</a> 405<ul class="blockList"> 406<li class="blockList"> 407<h4>_seenObjectIds</h4> 408<pre>protected transient <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="../../../../../com/fasterxml/jackson/databind/ser/impl/WritableObjectId.html" title="class in com.fasterxml.jackson.databind.ser.impl">WritableObjectId</a>> _seenObjectIds</pre> 409<div class="block">Per-serialization map Object Ids that have seen so far, iff 410 Object Id handling is enabled.</div> 411</li> 412</ul> 413<a name="_objectIdGenerators"> 414<!-- --> 415</a> 416<ul class="blockListLast"> 417<li class="blockList"> 418<h4>_objectIdGenerators</h4> 419<pre>protected transient <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a><com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> _objectIdGenerators</pre> 420</li> 421</ul> 422</li> 423</ul> 424<!-- ========= CONSTRUCTOR DETAIL ======== --> 425<ul class="blockList"> 426<li class="blockList"><a name="constructor_detail"> 427<!-- --> 428</a> 429<h3>Constructor Detail</h3> 430<a name="DefaultSerializerProvider()"> 431<!-- --> 432</a> 433<ul class="blockList"> 434<li class="blockList"> 435<h4>DefaultSerializerProvider</h4> 436<pre>protected DefaultSerializerProvider()</pre> 437</li> 438</ul> 439<a name="DefaultSerializerProvider(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)"> 440<!-- --> 441</a> 442<ul class="blockList"> 443<li class="blockList"> 444<h4>DefaultSerializerProvider</h4> 445<pre>protected DefaultSerializerProvider(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> src, 446 <a href="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 447 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> f)</pre> 448</li> 449</ul> 450<a name="DefaultSerializerProvider(com.fasterxml.jackson.databind.ser.DefaultSerializerProvider)"> 451<!-- --> 452</a> 453<ul class="blockListLast"> 454<li class="blockList"> 455<h4>DefaultSerializerProvider</h4> 456<pre>protected DefaultSerializerProvider(<a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> src)</pre> 457</li> 458</ul> 459</li> 460</ul> 461<!-- ============ METHOD DETAIL ========== --> 462<ul class="blockList"> 463<li class="blockList"><a name="method_detail"> 464<!-- --> 465</a> 466<h3>Method Detail</h3> 467<a name="copy()"> 468<!-- --> 469</a> 470<ul class="blockList"> 471<li class="blockList"> 472<h4>copy</h4> 473<pre>public <a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> copy()</pre> 474<div class="block">Method needed to ensure that <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html#copy()"><code>ObjectMapper.copy()</code></a> will work 475 properly; specifically, that caches are cleared, but settings 476 will otherwise remain identical; and that no sharing of state 477 occurs.</div> 478<dl><dt><span class="strong">Since:</span></dt> 479 <dd>2.5</dd></dl> 480</li> 481</ul> 482<a name="createInstance(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)"> 483<!-- --> 484</a> 485<ul class="blockList"> 486<li class="blockList"> 487<h4>createInstance</h4> 488<pre>public abstract <a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" title="class in com.fasterxml.jackson.databind.ser">DefaultSerializerProvider</a> createInstance(<a href="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 489 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> jsf)</pre> 490<div class="block">Overridable method, used to create a non-blueprint instances from the blueprint. 491 This is needed to retain state during serialization.</div> 492</li> 493</ul> 494<a name="serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)"> 495<!-- --> 496</a> 497<ul class="blockList"> 498<li class="blockList"> 499<h4>serializeValue</h4> 500<pre>public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, 501 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value) 502 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 503<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 504 for serializing given value, using serializers that 505 this provider has access to (via caching and/or creating new serializers 506 as need be).</div> 507<dl><dt><span class="strong">Throws:</span></dt> 508<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 509</li> 510</ul> 511<a name="serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.JavaType)"> 512<!-- --> 513</a> 514<ul class="blockList"> 515<li class="blockList"> 516<h4>serializeValue</h4> 517<pre>public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, 518 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 519 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType) 520 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 521<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 522 for serializing given value (assumed to be of specified root type, 523 instead of runtime type of value), 524 using serializers that 525 this provider has access to (via caching and/or creating new serializers 526 as need be),</div> 527<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rootType</code> - Type to use for locating serializer to use, instead of actual 528 runtime type. Must be actual type, or one of its super types</dd> 529<dt><span class="strong">Throws:</span></dt> 530<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 531</li> 532</ul> 533<a name="serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)"> 534<!-- --> 535</a> 536<ul class="blockList"> 537<li class="blockList"> 538<h4>serializeValue</h4> 539<pre>public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, 540 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 541 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 542 <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> ser) 543 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 544<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 545 for serializing given value (assumed to be of specified root type, 546 instead of runtime type of value), when it may know specific 547 <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> to use.</div> 548<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rootType</code> - Type to use for locating serializer to use, instead of actual 549 runtime type, if no serializer is passed</dd><dd><code>ser</code> - Root Serializer to use, if not null</dd> 550<dt><span class="strong">Throws:</span></dt> 551<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> 552 <dd>2.1</dd></dl> 553</li> 554</ul> 555<a name="serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.jsontype.TypeSerializer)"> 556<!-- --> 557</a> 558<ul class="blockList"> 559<li class="blockList"> 560<h4>serializePolymorphic</h4> 561<pre>public void serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator gen, 562 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 563 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer) 564 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 565<div class="block">Alternate serialization call used for polymorphic types, when <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> 566 is already known, but not actual value serializer.</div> 567<dl><dt><span class="strong">Throws:</span></dt> 568<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> 569 <dd>2.5</dd></dl> 570</li> 571</ul> 572<a name="_serializeNull(com.fasterxml.jackson.core.JsonGenerator)"> 573<!-- --> 574</a> 575<ul class="blockList"> 576<li class="blockList"> 577<h4>_serializeNull</h4> 578<pre>protected void _serializeNull(com.fasterxml.jackson.core.JsonGenerator gen) 579 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 580<div class="block">Helper method called when root value to serialize is null</div> 581<dl><dt><span class="strong">Throws:</span></dt> 582<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt> 583 <dd>2.3</dd></dl> 584</li> 585</ul> 586<a name="generateJsonSchema(java.lang.Class)"> 587<!-- --> 588</a> 589<ul class="blockList"> 590<li class="blockList"> 591<h4>generateJsonSchema</h4> 592<pre>public <a href="../../../../../com/fasterxml/jackson/databind/jsonschema/JsonSchema.html" title="class in com.fasterxml.jackson.databind.jsonschema">JsonSchema</a> generateJsonSchema(<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><?> type) 593 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 594<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 595 to generate <a href="http://json-schema.org/">JSON schema</a> for 596 given type.</div> 597<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - The type for which to generate schema</dd> 598<dt><span class="strong">Throws:</span></dt> 599<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 600</li> 601</ul> 602<a name="acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)"> 603<!-- --> 604</a> 605<ul class="blockList"> 606<li class="blockList"> 607<h4>acceptJsonFormatVisitor</h4> 608<pre>public void acceptJsonFormatVisitor(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> javaType, 609 <a href="../../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitorWrapper</a> visitor) 610 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 611<div class="block">The method to be called by <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> and <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> 612 to to expose the format of the given to to the given visitor</div> 613<dl><dt><span class="strong">Parameters:</span></dt><dd><code>javaType</code> - The type for which to generate format</dd><dd><code>visitor</code> - the visitor to accept the format</dd> 614<dt><span class="strong">Throws:</span></dt> 615<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 616</li> 617</ul> 618<a name="hasSerializerFor(java.lang.Class, java.util.concurrent.atomic.AtomicReference)"> 619<!-- --> 620</a> 621<ul class="blockList"> 622<li class="blockList"> 623<h4>hasSerializerFor</h4> 624<pre>public boolean hasSerializerFor(<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><?> cls, 625 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>> cause)</pre> 626<div class="block">Method that can be called to see if this serializer provider 627 can find a serializer for an instance of given class. 628<p> 629 Note that no Exceptions are thrown, including unchecked ones: 630 implementations are to swallow exceptions if necessary.</div> 631</li> 632</ul> 633<a name="cachedSerializersCount()"> 634<!-- --> 635</a> 636<ul class="blockList"> 637<li class="blockList"> 638<h4>cachedSerializersCount</h4> 639<pre>public int cachedSerializersCount()</pre> 640<div class="block">Method that can be used to determine how many serializers this 641 provider is caching currently 642 (if it does caching: default implementation does) 643 Exact count depends on what kind of serializers get cached; 644 default implementation caches all serializers, including ones that 645 are eagerly constructed (for optimal access speed) 646<p> 647 The main use case for this method is to allow conditional flushing of 648 serializer cache, if certain number of entries is reached.</div> 649</li> 650</ul> 651<a name="flushCachedSerializers()"> 652<!-- --> 653</a> 654<ul class="blockList"> 655<li class="blockList"> 656<h4>flushCachedSerializers</h4> 657<pre>public void flushCachedSerializers()</pre> 658<div class="block">Method that will drop all serializers currently cached by this provider. 659 This can be used to remove memory usage (in case some serializers are 660 only used once or so), or to force re-construction of serializers after 661 configuration changes for mapper than owns the provider.</div> 662</li> 663</ul> 664<a name="findObjectId(java.lang.Object, com.fasterxml.jackson.annotation.ObjectIdGenerator)"> 665<!-- --> 666</a> 667<ul class="blockList"> 668<li class="blockList"> 669<h4>findObjectId</h4> 670<pre>public <a href="../../../../../com/fasterxml/jackson/databind/ser/impl/WritableObjectId.html" title="class in com.fasterxml.jackson.databind.ser.impl">WritableObjectId</a> findObjectId(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> forPojo, 671 com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generatorType)</pre> 672<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findObjectId(java.lang.Object, com.fasterxml.jackson.annotation.ObjectIdGenerator)">SerializerProvider</a></code></strong></div> 673<div class="block">Method called to find the Object Id for given POJO, if one 674 has been generated. Will always return a non-null Object; 675 contents vary depending on whether an Object Id already 676 exists or not.</div> 677<dl> 678<dt><strong>Specified by:</strong></dt> 679<dd><code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findObjectId(java.lang.Object, com.fasterxml.jackson.annotation.ObjectIdGenerator)">findObjectId</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a></code></dd> 680</dl> 681</li> 682</ul> 683<a name="_createObjectIdMap()"> 684<!-- --> 685</a> 686<ul class="blockList"> 687<li class="blockList"> 688<h4>_createObjectIdMap</h4> 689<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>,<a href="../../../../../com/fasterxml/jackson/databind/ser/impl/WritableObjectId.html" title="class in com.fasterxml.jackson.databind.ser.impl">WritableObjectId</a>> _createObjectIdMap()</pre> 690<div class="block">Overridable helper method used for creating <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> 691 used for storing mappings from serializable objects to their 692 Object Ids.</div> 693<dl><dt><span class="strong">Since:</span></dt> 694 <dd>2.3</dd></dl> 695</li> 696</ul> 697<a name="serializerInstance(com.fasterxml.jackson.databind.introspect.Annotated, java.lang.Object)"> 698<!-- --> 699</a> 700<ul class="blockListLast"> 701<li class="blockList"> 702<h4>serializerInstance</h4> 703<pre>public <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>> serializerInstance(<a href="../../../../../com/fasterxml/jackson/databind/introspect/Annotated.html" title="class in com.fasterxml.jackson.databind.introspect">Annotated</a> annotated, 704 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> serDef) 705 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 706<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#serializerInstance(com.fasterxml.jackson.databind.introspect.Annotated, java.lang.Object)">SerializerProvider</a></code></strong></div> 707<div class="block">Method that can be called to construct and configure serializer instance, 708 either given a <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a> to instantiate (with default constructor), 709 or an uninitialized serializer instance. 710 Either way, serialize will be properly resolved 711 (via <a href="../../../../../com/fasterxml/jackson/databind/ser/ResolvableSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><code>ResolvableSerializer</code></a>) and/or contextualized 712 (via <a href="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><code>ContextualSerializer</code></a>) as necessary.</div> 713<dl> 714<dt><strong>Specified by:</strong></dt> 715<dd><code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#serializerInstance(com.fasterxml.jackson.databind.introspect.Annotated, java.lang.Object)">serializerInstance</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a></code></dd> 716<dt><span class="strong">Parameters:</span></dt><dd><code>annotated</code> - Annotated entity that contained definition</dd><dd><code>serDef</code> - Serializer definition: either an instance or class</dd> 717<dt><span class="strong">Throws:</span></dt> 718<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 719</li> 720</ul> 721</li> 722</ul> 723</li> 724</ul> 725</div> 726</div> 727<!-- ========= END OF CLASS DATA ========= --> 728<!-- ======= START OF BOTTOM NAVBAR ====== --> 729<div class="bottomNav"><a name="navbar_bottom"> 730<!-- --> 731</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 732<!-- --> 733</a> 734<ul class="navList" title="Navigation"> 735<li><a href="../../../../../overview-summary.html">Overview</a></li> 736<li><a href="package-summary.html">Package</a></li> 737<li class="navBarCell1Rev">Class</li> 738<li><a href="class-use/DefaultSerializerProvider.html">Use</a></li> 739<li><a href="package-tree.html">Tree</a></li> 740<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 741<li><a href="../../../../../index-all.html">Index</a></li> 742<li><a href="../../../../../help-doc.html">Help</a></li> 743</ul> 744</div> 745<div class="subNav"> 746<ul class="navList"> 747<li><a href="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><span class="strong">Prev Class</span></a></li> 748<li><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.Impl.html" title="class in com.fasterxml.jackson.databind.ser"><span class="strong">Next Class</span></a></li> 749</ul> 750<ul class="navList"> 751<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" target="_top">Frames</a></li> 752<li><a href="DefaultSerializerProvider.html" target="_top">No Frames</a></li> 753</ul> 754<ul class="navList" id="allclasses_navbar_bottom"> 755<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 756</ul> 757<div> 758<script type="text/javascript"><!-- 759 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 760 if(window==top) { 761 allClassesLink.style.display = "block"; 762 } 763 else { 764 allClassesLink.style.display = "none"; 765 } 766 //--> 767</script> 768</div> 769<div> 770<ul class="subNavList"> 771<li>Summary: </li> 772<li><a href="#nested_class_summary">Nested</a> | </li> 773<li><a href="#field_summary">Field</a> | </li> 774<li><a href="#constructor_summary">Constr</a> | </li> 775<li><a href="#method_summary">Method</a></li> 776</ul> 777<ul class="subNavList"> 778<li>Detail: </li> 779<li><a href="#field_detail">Field</a> | </li> 780<li><a href="#constructor_detail">Constr</a> | </li> 781<li><a href="#method_detail">Method</a></li> 782</ul> 783</div> 784<a name="skip-navbar_bottom"> 785<!-- --> 786</a></div> 787<!-- ======== END OF BOTTOM NAVBAR ======= --> 788<p class="legalCopy"><small>Copyright © 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 789</body> 790</html> 791