@@ -225,12 +225,12 @@ protected Object readResolve() {
225
225
* needed to allow modules to add more custom type handling
226
226
* (mostly to support types of non-Java JVM languages)
227
227
*/
228
- protected /* final*/ TypeFactory _typeFactory ;
228
+ protected final TypeFactory _typeFactory ;
229
229
230
230
/**
231
231
* Provider for values to inject in deserialized POJOs.
232
232
*/
233
- protected InjectableValues _injectableValues ;
233
+ protected final InjectableValues _injectableValues ;
234
234
235
235
/**
236
236
* Thing used for registering sub-types, resolving them to
@@ -269,6 +269,7 @@ protected Object readResolve() {
269
269
/**********************************************************
270
270
*/
271
271
272
+ // !!! TODO 15-Mar-2018: Only mutable for Default Typing
272
273
/**
273
274
* Configuration object that defines basic global
274
275
* settings for the serialization process
@@ -290,14 +291,15 @@ protected Object readResolve() {
290
291
/**
291
292
* Serializer factory used for constructing serializers.
292
293
*/
293
- protected SerializerFactory _serializerFactory ;
294
+ protected final SerializerFactory _serializerFactory ;
294
295
295
296
/*
296
297
/**********************************************************
297
298
/* Configuration settings, deserialization
298
299
/**********************************************************
299
300
*/
300
301
302
+ // !!! TODO 15-Mar-2018: Only mutable for Default Typing
301
303
/**
302
304
* Configuration object that defines basic global
303
305
* settings for the serialization process
@@ -309,7 +311,7 @@ protected Object readResolve() {
309
311
* sub-classes. Contains references to objects needed for
310
312
* deserialization construction (cache, factory).
311
313
*/
312
- protected DefaultDeserializationContext _deserializationContext ;
314
+ protected final DefaultDeserializationContext _deserializationContext ;
313
315
314
316
/*
315
317
/**********************************************************
@@ -339,7 +341,7 @@ protected Object readResolve() {
339
341
* no type information is needed for base type), or type-wrapped
340
342
* deserializers (if it is needed)
341
343
*/
342
- final protected ConcurrentHashMap <JavaType , JsonDeserializer <Object >> _rootDeserializers
344
+ protected final ConcurrentHashMap <JavaType , JsonDeserializer <Object >> _rootDeserializers
343
345
= new ConcurrentHashMap <JavaType , JsonDeserializer <Object >>(64 , 0.6f , 2 );
344
346
345
347
/*
@@ -354,7 +356,7 @@ protected Object readResolve() {
354
356
*
355
357
* @since 3.0
356
358
*/
357
- final protected MapperBuilderState _savedBuilderState ;
359
+ protected final MapperBuilderState _savedBuilderState ;
358
360
359
361
/*
360
362
/**********************************************************************
@@ -506,10 +508,22 @@ public Version version() {
506
508
/**********************************************************************
507
509
*/
508
510
511
+ /**
512
+ * Accessor for internal configuration object that contains settings for
513
+ * serialization operations (<code>writeValue(...)</code> methods)
514
+ *<br>
515
+ * NOTE: Not to be used by application code; needed by some tests
516
+ */
509
517
public SerializationConfig serializationConfig () {
510
518
return _serializationConfig ;
511
519
}
512
520
521
+ /**
522
+ * Accessor for internal configuration object that contains settings for
523
+ * deserialization operations (<code>readValue(...)</code> methods)
524
+ *<br>
525
+ * NOTE: Not to be used by application code; needed by some tests
526
+ */
513
527
public DeserializationConfig deserializationConfig () {
514
528
return _deserializationConfig ;
515
529
}
@@ -553,13 +567,6 @@ public InjectableValues getInjectableValues() {
553
567
return _injectableValues ;
554
568
}
555
569
556
- /**
557
- * Method for accessing subtype resolver in use.
558
- */
559
- public SubtypeResolver getSubtypeResolver () {
560
- return _subtypeResolver ;
561
- }
562
-
563
570
/*
564
571
/**********************************************************************
565
572
/* Configuration: ser/deser factory, provider access
@@ -570,15 +577,6 @@ public SerializerProvider getSerializerProvider() {
570
577
return _serializerProvider ;
571
578
}
572
579
573
- /**
574
- * Accessor for constructing and returning a {@link SerializerProvider}
575
- * instance that may be used for accessing serializers. This is same as
576
- * calling {@link #getSerializerProvider}, and calling <code>createInstance</code> on it.
577
- */
578
- public SerializerProvider serializerProviderInstance () {
579
- return _serializerProvider ();
580
- }
581
-
582
580
/*
583
581
/**********************************************************************
584
582
/* Configuration, access to type factory, type resolution
@@ -600,17 +598,6 @@ public TypeFactory getTypeFactory() {
600
598
public JavaType constructType (Type t ) {
601
599
return _typeFactory .constructType (t );
602
600
}
603
-
604
- /*
605
- /**********************************************************************
606
- /* Configuration: mix-in annotations
607
- /**********************************************************************
608
- */
609
-
610
- // For testing only:
611
- public MixInHandler mixInHandler () {
612
- return _mixIns ;
613
- }
614
601
615
602
/*
616
603
/**********************************************************************
0 commit comments