1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_35) on Tue Oct 09 17:08:19 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8SerializerCache (jackson-databind 2.1.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-10-09"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="SerializerCache (jackson-databind 2.1.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SerializerCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ResolvableSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.TypeKey.html" title="class in com.fasterxml.jackson.databind.ser"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/ser/SerializerCache.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="SerializerCache.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind.ser</FONT> 93<BR> 94Class SerializerCache</H2> 95<PRE> 96<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> 97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.ser.SerializerCache</B> 98</PRE> 99<HR> 100<DL> 101<DT><PRE>public final class <B>SerializerCache</B><DT>extends <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></DL> 102</PRE> 103 104<P> 105Simple cache object that allows for doing 2-level lookups: first level is 106 by "local" read-only lookup Map (used without locking) 107 and second backup level is by a shared modifiable HashMap. 108 The idea is that after a while, most serializers are found from the 109 local Map (to optimize performance, reduce lock contention), 110 but that during buildup we can use a shared map to reduce both 111 number of distinct read-only maps constructed, and number of 112 serializers constructed. 113<p> 114 Since version 1.5 cache will actually contain three kinds of entries, 115 based on combination of class pair key. First class in key is for the 116 type to serialize, and second one is type used for determining how 117 to resolve value type. One (but not both) of entries can be null. 118<P> 119 120<P> 121<HR> 122 123<P> 124<!-- ======== NESTED CLASS SUMMARY ======== --> 125 126<A NAME="nested_class_summary"><!-- --></A> 127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 130<B>Nested Class Summary</B></FONT></TH> 131</TR> 132<TR BGCOLOR="white" CLASS="TableRowColor"> 133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 134<CODE>static class</CODE></FONT></TD> 135<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.TypeKey.html" title="class in com.fasterxml.jackson.databind.ser">SerializerCache.TypeKey</A></B></CODE> 136 137<BR> 138 Key that offers two "modes"; one with raw class, as used for 139 cases were raw class type is available (for example, when using 140 runtime type); and one with full generics-including.</TD> 141</TR> 142</TABLE> 143 144<!-- ======== CONSTRUCTOR SUMMARY ======== --> 145 146<A NAME="constructor_summary"><!-- --></A> 147<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 148<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 149<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 150<B>Constructor Summary</B></FONT></TH> 151</TR> 152<TR BGCOLOR="white" CLASS="TableRowColor"> 153<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#SerializerCache()">SerializerCache</A></B>()</CODE> 154 155<BR> 156 </TD> 157</TR> 158</TABLE> 159 160<!-- ========== METHOD SUMMARY =========== --> 161 162<A NAME="method_summary"><!-- --></A> 163<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 164<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 165<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 166<B>Method Summary</B></FONT></TH> 167</TR> 168<TR BGCOLOR="white" CLASS="TableRowColor"> 169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 170<CODE> void</CODE></FONT></TD> 171<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#addAndResolveNonTypedSerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.SerializerProvider)">addAndResolveNonTypedSerializer</A></B>(<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, 172 <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, 173 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider)</CODE> 174 175<BR> 176 </TD> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 180<CODE> void</CODE></FONT></TD> 181<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#addAndResolveNonTypedSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.SerializerProvider)">addAndResolveNonTypedSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type, 182 <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, 183 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider)</CODE> 184 185<BR> 186 </TD> 187</TR> 188<TR BGCOLOR="white" CLASS="TableRowColor"> 189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 190<CODE> void</CODE></FONT></TD> 191<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#addTypedSerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer)">addTypedSerializer</A></B>(<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, 192 <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> 193 194<BR> 195 </TD> 196</TR> 197<TR BGCOLOR="white" CLASS="TableRowColor"> 198<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 199<CODE> void</CODE></FONT></TD> 200<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#addTypedSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)">addTypedSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type, 201 <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> 202 203<BR> 204 Method called if none of lookups succeeded, and caller had to construct 205 a serializer.</TD> 206</TR> 207<TR BGCOLOR="white" CLASS="TableRowColor"> 208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 209<CODE> void</CODE></FONT></TD> 210<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#flush()">flush</A></B>()</CODE> 211 212<BR> 213 Method called by StdSerializerProvider#flushCachedSerializers() to 214 clear all cached serializers</TD> 215</TR> 216<TR BGCOLOR="white" CLASS="TableRowColor"> 217<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 218<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap.html" title="class in com.fasterxml.jackson.databind.ser.impl">ReadOnlyClassToSerializerMap</A></CODE></FONT></TD> 219<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#getReadOnlyLookupMap()">getReadOnlyLookupMap</A></B>()</CODE> 220 221<BR> 222 Method that can be called to get a read-only instance populated from the 223 most recent version of the shared lookup Map.</TD> 224</TR> 225<TR BGCOLOR="white" CLASS="TableRowColor"> 226<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 227<CODE> int</CODE></FONT></TD> 228<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#size()">size</A></B>()</CODE> 229 230<BR> 231 </TD> 232</TR> 233<TR BGCOLOR="white" CLASS="TableRowColor"> 234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 235<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></FONT></TD> 236<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#typedValueSerializer(java.lang.Class)">typedValueSerializer</A></B>(<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> 237 238<BR> 239 </TD> 240</TR> 241<TR BGCOLOR="white" CLASS="TableRowColor"> 242<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 243<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></FONT></TD> 244<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#typedValueSerializer(com.fasterxml.jackson.databind.JavaType)">typedValueSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type)</CODE> 245 246<BR> 247 </TD> 248</TR> 249<TR BGCOLOR="white" CLASS="TableRowColor"> 250<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 251<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></FONT></TD> 252<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#untypedValueSerializer(java.lang.Class)">untypedValueSerializer</A></B>(<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> 253 254<BR> 255 Method that checks if the shared (and hence, synchronized) lookup Map might have 256 untyped serializer for given type.</TD> 257</TR> 258<TR BGCOLOR="white" CLASS="TableRowColor"> 259<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 260<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></FONT></TD> 261<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.html#untypedValueSerializer(com.fasterxml.jackson.databind.JavaType)">untypedValueSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type)</CODE> 262 263<BR> 264 </TD> 265</TR> 266</TABLE> 267 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 268<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 269<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 270<TH ALIGN="left"><B>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></B></TH> 271</TR> 272<TR BGCOLOR="white" CLASS="TableRowColor"> 273<TD><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></TD> 274</TR> 275</TABLE> 276 277<P> 278 279<!-- ========= CONSTRUCTOR DETAIL ======== --> 280 281<A NAME="constructor_detail"><!-- --></A> 282<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 283<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 284<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 285<B>Constructor Detail</B></FONT></TH> 286</TR> 287</TABLE> 288 289<A NAME="SerializerCache()"><!-- --></A><H3> 290SerializerCache</H3> 291<PRE> 292public <B>SerializerCache</B>()</PRE> 293<DL> 294</DL> 295 296<!-- ============ METHOD DETAIL ========== --> 297 298<A NAME="method_detail"><!-- --></A> 299<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 300<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 301<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 302<B>Method Detail</B></FONT></TH> 303</TR> 304</TABLE> 305 306<A NAME="getReadOnlyLookupMap()"><!-- --></A><H3> 307getReadOnlyLookupMap</H3> 308<PRE> 309public <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ReadOnlyClassToSerializerMap.html" title="class in com.fasterxml.jackson.databind.ser.impl">ReadOnlyClassToSerializerMap</A> <B>getReadOnlyLookupMap</B>()</PRE> 310<DL> 311<DD>Method that can be called to get a read-only instance populated from the 312 most recent version of the shared lookup Map. 313<P> 314<DD><DL> 315</DL> 316</DD> 317</DL> 318<HR> 319 320<A NAME="size()"><!-- --></A><H3> 321size</H3> 322<PRE> 323public int <B>size</B>()</PRE> 324<DL> 325<DD><DL> 326</DL> 327</DD> 328</DL> 329<HR> 330 331<A NAME="untypedValueSerializer(java.lang.Class)"><!-- --></A><H3> 332untypedValueSerializer</H3> 333<PRE> 334public <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>> <B>untypedValueSerializer</B>(<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)</PRE> 335<DL> 336<DD>Method that checks if the shared (and hence, synchronized) lookup Map might have 337 untyped serializer for given type. 338<P> 339<DD><DL> 340</DL> 341</DD> 342</DL> 343<HR> 344 345<A NAME="untypedValueSerializer(com.fasterxml.jackson.databind.JavaType)"><!-- --></A><H3> 346untypedValueSerializer</H3> 347<PRE> 348public <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>> <B>untypedValueSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type)</PRE> 349<DL> 350<DD><DL> 351</DL> 352</DD> 353</DL> 354<HR> 355 356<A NAME="typedValueSerializer(com.fasterxml.jackson.databind.JavaType)"><!-- --></A><H3> 357typedValueSerializer</H3> 358<PRE> 359public <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>> <B>typedValueSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type)</PRE> 360<DL> 361<DD><DL> 362</DL> 363</DD> 364</DL> 365<HR> 366 367<A NAME="typedValueSerializer(java.lang.Class)"><!-- --></A><H3> 368typedValueSerializer</H3> 369<PRE> 370public <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>> <B>typedValueSerializer</B>(<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> 371<DL> 372<DD><DL> 373</DL> 374</DD> 375</DL> 376<HR> 377 378<A NAME="addTypedSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer)"><!-- --></A><H3> 379addTypedSerializer</H3> 380<PRE> 381public void <B>addTypedSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type, 382 <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)</PRE> 383<DL> 384<DD>Method called if none of lookups succeeded, and caller had to construct 385 a serializer. If so, we will update the shared lookup map so that it 386 can be resolved via it next time. 387<P> 388<DD><DL> 389</DL> 390</DD> 391</DL> 392<HR> 393 394<A NAME="addTypedSerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer)"><!-- --></A><H3> 395addTypedSerializer</H3> 396<PRE> 397public void <B>addTypedSerializer</B>(<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, 398 <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)</PRE> 399<DL> 400<DD><DL> 401</DL> 402</DD> 403</DL> 404<HR> 405 406<A NAME="addAndResolveNonTypedSerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.SerializerProvider)"><!-- --></A><H3> 407addAndResolveNonTypedSerializer</H3> 408<PRE> 409public void <B>addAndResolveNonTypedSerializer</B>(<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, 410 <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, 411 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider) 412 throws <A HREF="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 413<DL> 414<DD><DL> 415 416<DT><B>Throws:</B> 417<DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 418</DD> 419</DL> 420<HR> 421 422<A NAME="addAndResolveNonTypedSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer, com.fasterxml.jackson.databind.SerializerProvider)"><!-- --></A><H3> 423addAndResolveNonTypedSerializer</H3> 424<PRE> 425public void <B>addAndResolveNonTypedSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type, 426 <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, 427 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider) 428 throws <A HREF="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></PRE> 429<DL> 430<DD><DL> 431 432<DT><B>Throws:</B> 433<DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</A></CODE></DL> 434</DD> 435</DL> 436<HR> 437 438<A NAME="flush()"><!-- --></A><H3> 439flush</H3> 440<PRE> 441public void <B>flush</B>()</PRE> 442<DL> 443<DD>Method called by StdSerializerProvider#flushCachedSerializers() to 444 clear all cached serializers 445<P> 446<DD><DL> 447</DL> 448</DD> 449</DL> 450<!-- ========= END OF CLASS DATA ========= --> 451<HR> 452 453 454<!-- ======= START OF BOTTOM NAVBAR ====== --> 455<A NAME="navbar_bottom"><!-- --></A> 456<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 457<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 458<TR> 459<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 460<A NAME="navbar_bottom_firstrow"><!-- --></A> 461<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 462 <TR ALIGN="center" VALIGN="top"> 463 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 464 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 465 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 466 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SerializerCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 467 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 468 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 469 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 470 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 471 </TR> 472</TABLE> 473</TD> 474<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 475</EM> 476</TD> 477</TR> 478 479<TR> 480<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 481 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ResolvableSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A> 482 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/SerializerCache.TypeKey.html" title="class in com.fasterxml.jackson.databind.ser"><B>NEXT CLASS</B></A></FONT></TD> 483<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 484 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/ser/SerializerCache.html" target="_top"><B>FRAMES</B></A> 485 <A HREF="SerializerCache.html" target="_top"><B>NO FRAMES</B></A> 486 <SCRIPT type="text/javascript"> 487 <!-- 488 if(window==top) { 489 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 490 } 491 //--> 492</SCRIPT> 493<NOSCRIPT> 494 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 495</NOSCRIPT> 496 497 498</FONT></TD> 499</TR> 500<TR> 501<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 502 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 503<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 504DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 505</TR> 506</TABLE> 507<A NAME="skip-navbar_bottom"></A> 508<!-- ======== END OF BOTTOM NAVBAR ======= --> 509 510<HR> 511Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. 512</BODY> 513</HTML> 514