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 Sat Nov 16 21:43:19 PST 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>DefaultSerializerProvider (jackson-databind 2.3.0 API)</title> 8<meta name="date" content="2013-11-16"> 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.3.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><<a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.3.0/com/fasterxml/jackson/annotation/ObjectIdGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation">ObjectIdGenerator</a><?>></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>, <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#TYPE_OBJECT">TYPE_OBJECT</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.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, 212 <a href="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 213 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> f)</code> </td> 214</tr> 215</table> 216</li> 217</ul> 218<!-- ========== METHOD SUMMARY =========== --> 219<ul class="blockList"> 220<li class="blockList"><a name="method_summary"> 221<!-- --> 222</a> 223<h3>Method Summary</h3> 224<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 225<caption><span>Methods</span><span class="tabEnd"> </span></caption> 226<tr> 227<th class="colFirst" scope="col">Modifier and Type</th> 228<th class="colLast" scope="col">Method and Description</th> 229</tr> 230<tr class="altColor"> 231<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> 232<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#_createObjectIdMap()">_createObjectIdMap</a></strong>()</code> 233<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> 234 used for storing mappings from serializable objects to their 235 Object Ids.</div> 236</td> 237</tr> 238<tr class="rowColor"> 239<td class="colFirst"><code>protected void</code></td> 240<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#_serializeNull(com.fasterxml.jackson.core.JsonGenerator)">_serializeNull</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen)</code> 241<div class="block">Helper method called when root value to serialize is null</div> 242</td> 243</tr> 244<tr class="altColor"> 245<td class="colFirst"><code>void</code></td> 246<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, 247 <a href="../../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitorWrapper</a> visitor)</code> 248<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> 249 to to expose the format of the given to to the given visitor</div> 250</td> 251</tr> 252<tr class="rowColor"> 253<td class="colFirst"><code>int</code></td> 254<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#cachedSerializersCount()">cachedSerializersCount</a></strong>()</code> 255<div class="block">Method that can be used to determine how many serializers this 256 provider is caching currently 257 (if it does caching: default implementation does) 258 Exact count depends on what kind of serializers get cached; 259 default implementation caches all serializers, including ones that 260 are eagerly constructed (for optimal access speed)</div> 261</td> 262</tr> 263<tr class="altColor"> 264<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> 265<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, 266 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> jsf)</code> 267<div class="block">Overridable method, used to create a non-blueprint instances from the blueprint.</div> 268</td> 269</tr> 270<tr class="rowColor"> 271<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> 272<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, 273 <a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.3.0/com/fasterxml/jackson/annotation/ObjectIdGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation">ObjectIdGenerator</a><?> generatorType)</code> 274<div class="block">Method called to find the Object Id for given POJO, if one 275 has been generated.</div> 276</td> 277</tr> 278<tr class="altColor"> 279<td class="colFirst"><code>void</code></td> 280<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#flushCachedSerializers()">flushCachedSerializers</a></strong>()</code> 281<div class="block">Method that will drop all serializers currently cached by this provider.</div> 282</td> 283</tr> 284<tr class="rowColor"> 285<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> 286<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> 287<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> 288 to generate <a href="http://json-schema.org/">JSON schema</a> for 289 given type.</div> 290</td> 291</tr> 292<tr class="altColor"> 293<td class="colFirst"><code>boolean</code></td> 294<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html#hasSerializerFor(java.lang.Class)">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)</code> 295<div class="block"><strong>Deprecated.</strong> </div> 296</td> 297</tr> 298<tr class="rowColor"> 299<td class="colFirst"><code>boolean</code></td> 300<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, 301 <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> 302<div class="block">Method that can be called to see if this serializer provider 303 can find a serializer for an instance of given class.</div> 304</td> 305</tr> 306<tr class="altColor"> 307<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> 308<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, 309 <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> 310<div class="block">Method that can be called to construct and configure serializer instance, 311 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), 312 or an uninitialized serializer instance.</div> 313</td> 314</tr> 315<tr class="rowColor"> 316<td class="colFirst"><code>void</code></td> 317<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>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 318 <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> 319<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> 320 for serializing given value, using serializers that 321 this provider has access to (via caching and/or creating new serializers 322 as need be).</div> 323</td> 324</tr> 325<tr class="altColor"> 326<td class="colFirst"><code>void</code></td> 327<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>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 328 <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, 329 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType)</code> 330<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> 331 for serializing given value (assumed to be of specified root type, 332 instead of runtime type of value), 333 using serializers that 334 this provider has access to (via caching and/or creating new serializers 335 as need be),</div> 336</td> 337</tr> 338<tr class="rowColor"> 339<td class="colFirst"><code>void</code></td> 340<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>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 341 <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, 342 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 343 <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> 344<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> 345 for serializing given value (assumed to be of specified root type, 346 instead of runtime type of value), when it may know specific 347 <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> to use.</div> 348</td> 349</tr> 350</table> 351<ul class="blockList"> 352<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.SerializerProvider"> 353<!-- --> 354</a> 355<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> 356<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, com.fasterxml.jackson.databind.BeanProperty)">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#handleContextualization(com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.BeanProperty)">handleContextualization</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#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> 357</ul> 358<ul class="blockList"> 359<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.DatabindContext"> 360<!-- --> 361</a> 362<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> 363<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></code></li> 364</ul> 365<ul class="blockList"> 366<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 367<!-- --> 368</a> 369<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> 370<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> 371</ul> 372</li> 373</ul> 374</li> 375</ul> 376</div> 377<div class="details"> 378<ul class="blockList"> 379<li class="blockList"> 380<!-- ============ FIELD DETAIL =========== --> 381<ul class="blockList"> 382<li class="blockList"><a name="field_detail"> 383<!-- --> 384</a> 385<h3>Field Detail</h3> 386<a name="_seenObjectIds"> 387<!-- --> 388</a> 389<ul class="blockList"> 390<li class="blockList"> 391<h4>_seenObjectIds</h4> 392<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> 393<div class="block">Per-serialization map Object Ids that have seen so far, iff 394 Object Id handling is enabled.</div> 395</li> 396</ul> 397<a name="_objectIdGenerators"> 398<!-- --> 399</a> 400<ul class="blockListLast"> 401<li class="blockList"> 402<h4>_objectIdGenerators</h4> 403<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><<a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.3.0/com/fasterxml/jackson/annotation/ObjectIdGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation">ObjectIdGenerator</a><?>> _objectIdGenerators</pre> 404</li> 405</ul> 406</li> 407</ul> 408<!-- ========= CONSTRUCTOR DETAIL ======== --> 409<ul class="blockList"> 410<li class="blockList"><a name="constructor_detail"> 411<!-- --> 412</a> 413<h3>Constructor Detail</h3> 414<a name="DefaultSerializerProvider()"> 415<!-- --> 416</a> 417<ul class="blockList"> 418<li class="blockList"> 419<h4>DefaultSerializerProvider</h4> 420<pre>protected DefaultSerializerProvider()</pre> 421</li> 422</ul> 423<a name="DefaultSerializerProvider(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)"> 424<!-- --> 425</a> 426<ul class="blockListLast"> 427<li class="blockList"> 428<h4>DefaultSerializerProvider</h4> 429<pre>protected DefaultSerializerProvider(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> src, 430 <a href="../../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind">SerializationConfig</a> config, 431 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> f)</pre> 432</li> 433</ul> 434</li> 435</ul> 436<!-- ============ METHOD DETAIL ========== --> 437<ul class="blockList"> 438<li class="blockList"><a name="method_detail"> 439<!-- --> 440</a> 441<h3>Method Detail</h3> 442<a name="createInstance(com.fasterxml.jackson.databind.SerializationConfig, com.fasterxml.jackson.databind.ser.SerializerFactory)"> 443<!-- --> 444</a> 445<ul class="blockList"> 446<li class="blockList"> 447<h4>createInstance</h4> 448<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, 449 <a href="../../../../../com/fasterxml/jackson/databind/ser/SerializerFactory.html" title="class in com.fasterxml.jackson.databind.ser">SerializerFactory</a> jsf)</pre> 450<div class="block">Overridable method, used to create a non-blueprint instances from the blueprint. 451 This is needed to retain state during serialization.</div> 452</li> 453</ul> 454<a name="serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object)"> 455<!-- --> 456</a> 457<ul class="blockList"> 458<li class="blockList"> 459<h4>serializeValue</h4> 460<pre>public void serializeValue(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 461 <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) 462 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>, 463 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></pre> 464<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> 465 for serializing given value, using serializers that 466 this provider has access to (via caching and/or creating new serializers 467 as need be).</div> 468<dl><dt><span class="strong">Throws:</span></dt> 469<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> 470<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd></dl> 471</li> 472</ul> 473<a name="serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.JavaType)"> 474<!-- --> 475</a> 476<ul class="blockList"> 477<li class="blockList"> 478<h4>serializeValue</h4> 479<pre>public void serializeValue(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 480 <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, 481 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType) 482 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>, 483 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></pre> 484<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> 485 for serializing given value (assumed to be of specified root type, 486 instead of runtime type of value), 487 using serializers that 488 this provider has access to (via caching and/or creating new serializers 489 as need be),</div> 490<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rootType</code> - Type to use for locating serializer to use, instead of actual 491 runtime type. Must be actual type, or one of its super types</dd> 492<dt><span class="strong">Throws:</span></dt> 493<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> 494<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd></dl> 495</li> 496</ul> 497<a name="serializeValue(com.fasterxml.jackson.core.JsonGenerator, java.lang.Object, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)"> 498<!-- --> 499</a> 500<ul class="blockList"> 501<li class="blockList"> 502<h4>serializeValue</h4> 503<pre>public void serializeValue(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 504 <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, 505 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> rootType, 506 <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) 507 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>, 508 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></pre> 509<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> 510 for serializing given value (assumed to be of specified root type, 511 instead of runtime type of value), when it may know specific 512 <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> to use.</div> 513<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rootType</code> - Type to use for locating serializer to use, instead of actual 514 runtime type, if no serializer is passed</dd><dd><code>ser</code> - Root Serializer to use, if not null</dd> 515<dt><span class="strong">Throws:</span></dt> 516<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> 517<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 518 <dd>2.1</dd></dl> 519</li> 520</ul> 521<a name="_serializeNull(com.fasterxml.jackson.core.JsonGenerator)"> 522<!-- --> 523</a> 524<ul class="blockList"> 525<li class="blockList"> 526<h4>_serializeNull</h4> 527<pre>protected void _serializeNull(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen) 528 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>, 529 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></pre> 530<div class="block">Helper method called when root value to serialize is null</div> 531<dl><dt><span class="strong">Throws:</span></dt> 532<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> 533<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</a></code></dd><dt><span class="strong">Since:</span></dt> 534 <dd>2.3</dd></dl> 535</li> 536</ul> 537<a name="generateJsonSchema(java.lang.Class)"> 538<!-- --> 539</a> 540<ul class="blockList"> 541<li class="blockList"> 542<h4>generateJsonSchema</h4> 543<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) 544 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 545<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> 546 to generate <a href="http://json-schema.org/">JSON schema</a> for 547 given type.</div> 548<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - The type for which to generate schema</dd> 549<dt><span class="strong">Throws:</span></dt> 550<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 551</li> 552</ul> 553<a name="acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)"> 554<!-- --> 555</a> 556<ul class="blockList"> 557<li class="blockList"> 558<h4>acceptJsonFormatVisitor</h4> 559<pre>public void acceptJsonFormatVisitor(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> javaType, 560 <a href="../../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitorWrapper.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitorWrapper</a> visitor) 561 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 562<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> 563 to to expose the format of the given to to the given visitor</div> 564<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> 565<dt><span class="strong">Throws:</span></dt> 566<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 567</li> 568</ul> 569<a name="hasSerializerFor(java.lang.Class)"> 570<!-- --> 571</a> 572<ul class="blockList"> 573<li class="blockList"> 574<h4>hasSerializerFor</h4> 575<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 576public 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)</pre> 577<div class="block"><span class="strong">Deprecated.</span> </div> 578</li> 579</ul> 580<a name="hasSerializerFor(java.lang.Class, java.util.concurrent.atomic.AtomicReference)"> 581<!-- --> 582</a> 583<ul class="blockList"> 584<li class="blockList"> 585<h4>hasSerializerFor</h4> 586<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, 587 <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> 588<div class="block">Method that can be called to see if this serializer provider 589 can find a serializer for an instance of given class. 590<p> 591 Note that no Exceptions are thrown, including unchecked ones: 592 implementations are to swallow exceptions if necessary.</div> 593</li> 594</ul> 595<a name="cachedSerializersCount()"> 596<!-- --> 597</a> 598<ul class="blockList"> 599<li class="blockList"> 600<h4>cachedSerializersCount</h4> 601<pre>public int cachedSerializersCount()</pre> 602<div class="block">Method that can be used to determine how many serializers this 603 provider is caching currently 604 (if it does caching: default implementation does) 605 Exact count depends on what kind of serializers get cached; 606 default implementation caches all serializers, including ones that 607 are eagerly constructed (for optimal access speed) 608<p> 609 The main use case for this method is to allow conditional flushing of 610 serializer cache, if certain number of entries is reached.</div> 611</li> 612</ul> 613<a name="flushCachedSerializers()"> 614<!-- --> 615</a> 616<ul class="blockList"> 617<li class="blockList"> 618<h4>flushCachedSerializers</h4> 619<pre>public void flushCachedSerializers()</pre> 620<div class="block">Method that will drop all serializers currently cached by this provider. 621 This can be used to remove memory usage (in case some serializers are 622 only used once or so), or to force re-construction of serializers after 623 configuration changes for mapper than owns the provider.</div> 624</li> 625</ul> 626<a name="findObjectId(java.lang.Object, com.fasterxml.jackson.annotation.ObjectIdGenerator)"> 627<!-- --> 628</a> 629<ul class="blockList"> 630<li class="blockList"> 631<h4>findObjectId</h4> 632<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, 633 <a href="http://fasterxml.github.com/jackson-annotations/javadoc/2.3.0/com/fasterxml/jackson/annotation/ObjectIdGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.annotation">ObjectIdGenerator</a><?> generatorType)</pre> 634<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> 635<div class="block">Method called to find the Object Id for given POJO, if one 636 has been generated. Will always return a non-null Object; 637 contents vary depending on whether an Object Id already 638 exists or not.</div> 639<dl> 640<dt><strong>Specified by:</strong></dt> 641<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> 642</dl> 643</li> 644</ul> 645<a name="_createObjectIdMap()"> 646<!-- --> 647</a> 648<ul class="blockList"> 649<li class="blockList"> 650<h4>_createObjectIdMap</h4> 651<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> 652<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> 653 used for storing mappings from serializable objects to their 654 Object Ids.</div> 655<dl><dt><span class="strong">Since:</span></dt> 656 <dd>2.3</dd></dl> 657</li> 658</ul> 659<a name="serializerInstance(com.fasterxml.jackson.databind.introspect.Annotated, java.lang.Object)"> 660<!-- --> 661</a> 662<ul class="blockListLast"> 663<li class="blockList"> 664<h4>serializerInstance</h4> 665<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, 666 <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) 667 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 668<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> 669<div class="block">Method that can be called to construct and configure serializer instance, 670 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), 671 or an uninitialized serializer instance. 672 Either way, serialize will be properly resolved 673 (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 674 (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> 675<dl> 676<dt><strong>Specified by:</strong></dt> 677<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> 678<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> 679<dt><span class="strong">Throws:</span></dt> 680<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd></dl> 681</li> 682</ul> 683</li> 684</ul> 685</li> 686</ul> 687</div> 688</div> 689<!-- ========= END OF CLASS DATA ========= --> 690<!-- ======= START OF BOTTOM NAVBAR ====== --> 691<div class="bottomNav"><a name="navbar_bottom"> 692<!-- --> 693</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 694<!-- --> 695</a> 696<ul class="navList" title="Navigation"> 697<li><a href="../../../../../overview-summary.html">Overview</a></li> 698<li><a href="package-summary.html">Package</a></li> 699<li class="navBarCell1Rev">Class</li> 700<li><a href="class-use/DefaultSerializerProvider.html">Use</a></li> 701<li><a href="package-tree.html">Tree</a></li> 702<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 703<li><a href="../../../../../index-all.html">Index</a></li> 704<li><a href="../../../../../help-doc.html">Help</a></li> 705</ul> 706</div> 707<div class="subNav"> 708<ul class="navList"> 709<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> 710<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> 711</ul> 712<ul class="navList"> 713<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/DefaultSerializerProvider.html" target="_top">Frames</a></li> 714<li><a href="DefaultSerializerProvider.html" target="_top">No Frames</a></li> 715</ul> 716<ul class="navList" id="allclasses_navbar_bottom"> 717<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 718</ul> 719<div> 720<script type="text/javascript"><!-- 721 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 722 if(window==top) { 723 allClassesLink.style.display = "block"; 724 } 725 else { 726 allClassesLink.style.display = "none"; 727 } 728 //--> 729</script> 730</div> 731<div> 732<ul class="subNavList"> 733<li>Summary: </li> 734<li><a href="#nested_class_summary">Nested</a> | </li> 735<li><a href="#field_summary">Field</a> | </li> 736<li><a href="#constructor_summary">Constr</a> | </li> 737<li><a href="#method_summary">Method</a></li> 738</ul> 739<ul class="subNavList"> 740<li>Detail: </li> 741<li><a href="#field_detail">Field</a> | </li> 742<li><a href="#constructor_detail">Constr</a> | </li> 743<li><a href="#method_detail">Method</a></li> 744</ul> 745</div> 746<a name="skip-navbar_bottom"> 747<!-- --> 748</a></div> 749<!-- ======== END OF BOTTOM NAVBAR ======= --> 750<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 751</body> 752</html> 753