calabash-android 0.4.7.pre4 → 0.4.7.pre6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/calabash-android/helpers.rb +22 -1
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/lib/apktool-cli-1.5.3-SNAPSHOT.jar +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/instrumentation-backend/.classpath +4 -1
- data/test-server/instrumentation-backend/libs/jackson-annotations-2.2.0-rc2-20130418.042013-1.jar +0 -0
- data/test-server/instrumentation-backend/libs/jackson-core-2.2.0-rc2-20130420.041001-2.jar +0 -0
- data/test-server/instrumentation-backend/libs/jackson-databind-2.2.0-rc2-20130422.041053-3.jar +0 -0
- data/test-server/instrumentation-backend/libs/robotium-solo-4.1.jar +0 -0
- data/test-server/instrumentation-backend/src/org/antlr/runtime/LegacyCommonTokenStream.java +6 -1
- data/test-server/instrumentation-backend/src/org/antlr/runtime/debug/DebugTokenStream.java +3 -3
- data/test-server/instrumentation-backend/src/org/antlr/runtime/misc/FastQueue.java +1 -1
- data/test-server/instrumentation-backend/src/org/antlr/runtime/tree/BaseTreeAdaptor.java +4 -4
- data/test-server/instrumentation-backend/src/org/antlr/runtime/tree/CommonErrorNode.java +8 -1
- data/test-server/instrumentation-backend/src/org/antlr/runtime/tree/TreeIterator.java +2 -3
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/CalabashInstrumentationTestRunner.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/InstrumentationBackend.java +2 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java +21 -11
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/NanoHTTPD.java +127 -68
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/button/PressButtonText.java +2 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/button/PressImageButtonDescription.java +2 -3
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/gestures/Swipe.java +0 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/list/GetListData.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/list/GetListItemProperties.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/list/GetListItemText.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/text/AssertGridViewContainsNoDuplicates.java +4 -4
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/view/Press.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/view/SelectTab.java +4 -4
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForProgress.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForTab.java +4 -4
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/webview/QueryHelper.java +2 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java +2 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryASTClassName.java +0 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryUtils.java +3 -2
- metadata +7 -411
- data/test-server/instrumentation-backend/libs/robotium-solo-3.6.jar +0 -0
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/activity/GetOpenedActivities.java +0 -31
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/activity/GoBackToActivity.java +0 -67
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variant.java +0 -413
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variants.java +0 -90
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/FormatSchema.java +0 -29
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonEncoding.java +0 -47
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonFactory.java +0 -937
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerationException.java +0 -28
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerator.java +0 -1197
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonLocation.java +0 -141
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonNode.java +0 -879
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParseException.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParser.java +0 -1434
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonProcessingException.java +0 -80
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonStreamContext.java +0 -122
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonToken.java +0 -161
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/ObjectCodec.java +0 -157
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/PrettyPrinter.java +0 -166
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/SerializableString.java +0 -54
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Version.java +0 -90
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Versioned.java +0 -20
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JacksonAnnotation.java +0 -20
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnyGetter.java +0 -25
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnySetter.java +0 -24
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAutoDetect.java +0 -148
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonBackReference.java +0 -41
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonCreator.java +0 -19
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonGetter.java +0 -35
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnore.java +0 -57
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreProperties.java +0 -48
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreType.java +0 -33
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonManagedReference.java +0 -41
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonMethod.java +0 -90
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonProperty.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonPropertyOrder.java +0 -46
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonRawValue.java +0 -33
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSetter.java +0 -33
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSubTypes.java +0 -44
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeInfo.java +0 -236
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeName.java +0 -28
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonUnwrapped.java +0 -76
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonValue.java +0 -46
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonWriteNullProperties.java +0 -34
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/package-info.java +0 -16
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatDetector.java +0 -176
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatMatcher.java +0 -117
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/InputAccessor.java +0 -130
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/MatchStrength.java +0 -64
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/package-info.java +0 -8
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ByteSourceBootstrapper.java +0 -518
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/DefaultPrettyPrinter.java +0 -13
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Indenter.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonGeneratorBase.java +0 -570
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonNumericParserBase.java +0 -20
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserBase.java +0 -1067
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserMinimalBase.java +0 -539
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonReadContext.java +0 -188
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonWriteContext.java +0 -178
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParser.java +0 -1815
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParserBase.java +0 -228
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/StreamBasedParserBase.java +0 -197
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8Generator.java +0 -1757
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8StreamParser.java +0 -2966
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/WriterBasedGenerator.java +0 -1815
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/package-info.java +0 -6
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/BaseReader.java +0 -117
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/CharacterEscapes.java +0 -73
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/IOContext.java +0 -239
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/InputDecorator.java +0 -67
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/JsonStringEncoder.java +0 -408
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/MergedStream.java +0 -145
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberInput.java +0 -303
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberOutput.java +0 -398
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/OutputDecorator.java +0 -40
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SegmentedStringWriter.java +0 -104
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SerializedString.java +0 -114
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF32Reader.java +0 -214
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF8Writer.java +0 -387
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/package.html +0 -4
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AbstractTypeResolver.java +0 -63
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AnnotationIntrospector.java +0 -1485
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanDescription.java +0 -171
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanProperty.java +0 -123
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanPropertyDefinition.java +0 -66
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ClassIntrospector.java +0 -117
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualDeserializer.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualKeyDeserializer.java +0 -33
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualSerializer.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationConfig.java +0 -926
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationContext.java +0 -262
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationProblemHandler.java +0 -56
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerFactory.java +0 -356
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerProvider.java +0 -185
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Deserializers.java +0 -339
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/HandlerInstantiator.java +0 -115
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/InjectableValues.java +0 -85
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonDeserializer.java +0 -166
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonMappingException.java +0 -335
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializable.java +0 -34
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializableWithType.java +0 -22
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializer.java +0 -138
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializer.java +0 -31
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializers.java +0 -21
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MapperConfig.java +0 -1154
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingIterator.java +0 -190
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingJsonFactory.java +0 -81
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Module.java +0 -255
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectMapper.java +0 -2885
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectReader.java +0 -958
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectWriter.java +0 -554
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/PropertyNamingStrategy.java +0 -258
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableDeserializer.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableSerializer.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/RuntimeJsonMappingException.java +0 -21
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializationConfig.java +0 -1041
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerFactory.java +0 -198
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerProvider.java +0 -552
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Serializers.java +0 -137
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeDeserializer.java +0 -118
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeSerializer.java +0 -164
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonInject.java +0 -30
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonStdImpl.java +0 -25
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonCachable.java +0 -32
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonDeserialize.java +0 -109
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonFilter.java +0 -31
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonRootName.java +0 -29
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonSerialize.java +0 -216
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeIdResolver.java +0 -35
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeResolver.java +0 -28
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonValueInstantiator.java +0 -26
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonView.java +0 -37
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/NoClass.java +0 -19
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/package-info.java +0 -5
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/AbstractDeserializer.java +0 -102
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializer.java +0 -28
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializers.java +0 -11
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BasicDeserializerFactory.java +0 -894
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializer.java +0 -1537
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerBuilder.java +0 -277
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerFactory.java +0 -1474
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerModifier.java +0 -58
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CollectionDeserializer.java +0 -47
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ContainerDeserializer.java +0 -14
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CustomDeserializerFactory.java +0 -227
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/DateDeserializer.java +0 -9
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumDeserializer.java +0 -15
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumResolver.java +0 -17
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/FromStringDeserializer.java +0 -13
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/JsonNodeDeserializer.java +0 -54
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/MapDeserializer.java +0 -44
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableAnyProperty.java +0 -177
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableBeanProperty.java +0 -827
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializationContext.java +0 -326
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializer.java +0 -94
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializerProvider.java +0 -494
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializers.java +0 -119
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializer.java +0 -12
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializers.java +0 -11
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdScalarDeserializer.java +0 -13
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ThrowableDeserializer.java +0 -13
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/UntypedObjectDeserializer.java +0 -9
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiator.java +0 -280
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiators.java +0 -52
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/BeanPropertyMap.java +0 -257
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorCollector.java +0 -141
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorProperty.java +0 -152
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ExternalTypeHandler.java +0 -173
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyBasedCreator.java +0 -117
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValue.java +0 -117
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValueBuffer.java +0 -102
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/UnwrappedPropertyHandler.java +0 -41
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ValueInjector.java +0 -45
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/package-info.java +0 -9
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/package-info.java +0 -5
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicBooleanDeserializer.java +0 -22
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicReferenceDeserializer.java +0 -47
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CalendarDeserializer.java +0 -47
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ClassDeserializer.java +0 -49
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CollectionDeserializer.java +0 -265
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ContainerDeserializerBase.java +0 -37
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/DateDeserializer.java +0 -30
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumDeserializer.java +0 -139
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumMapDeserializer.java +0 -90
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumSetDeserializer.java +0 -89
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/FromStringDeserializer.java +0 -265
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JavaTypeDeserializer.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JsonNodeDeserializer.java +0 -314
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/MapDeserializer.java +0 -412
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ObjectArrayDeserializer.java +0 -201
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/PrimitiveArrayDeserializers.java +0 -583
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdDeserializer.java +0 -1136
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializer.java +0 -340
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializers.java +0 -108
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdScalarDeserializer.java +0 -34
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdValueInstantiator.java +0 -392
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringCollectionDeserializer.java +0 -227
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringDeserializer.java +0 -55
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ThrowableDeserializer.java +0 -164
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TimestampDeserializer.java +0 -30
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TokenBufferDeserializer.java +0 -36
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/UntypedObjectDeserializer.java +0 -248
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/package-info.java +0 -15
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/exc/UnrecognizedPropertyException.java +0 -75
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/DOMDeserializer.java +0 -65
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/OptionalHandlerFactory.java +0 -217
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/package-info.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/Annotated.java +0 -85
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedClass.java +0 -980
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedConstructor.java +0 -143
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedField.java +0 -119
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMember.java +0 -56
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethod.java +0 -188
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethodMap.java +0 -85
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedParameter.java +0 -191
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedWithParams.java +0 -195
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotationMap.java +0 -101
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicBeanDescription.java +0 -615
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicClassIntrospector.java +0 -364
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/JacksonAnnotationIntrospector.java +0 -813
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MemberKey.java +0 -83
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MethodFilter.java +0 -12
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/NopAnnotationIntrospector.java +0 -209
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertiesCollector.java +0 -713
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertyBuilder.java +0 -648
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/VisibilityChecker.java +0 -424
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/package-info.java +0 -12
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/NamedType.java +0 -53
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/SubtypeResolver.java +0 -39
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeIdResolver.java +0 -74
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeResolverBuilder.java +0 -151
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeDeserializer.java +0 -126
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeSerializer.java +0 -110
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeDeserializer.java +0 -37
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeSerializer.java +0 -129
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeDeserializer.java +0 -191
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeSerializer.java +0 -69
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeDeserializer.java +0 -103
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeSerializer.java +0 -121
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/ClassNameIdResolver.java +0 -138
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/MinimalClassNameIdResolver.java +0 -66
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdSubtypeResolver.java +0 -151
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdTypeResolverBuilder.java +0 -202
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeDeserializerBase.java +0 -154
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeIdResolverBase.java +0 -37
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeNameIdResolver.java +0 -154
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeSerializerBase.java +0 -31
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/package-info.java +0 -9
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/package-info.java +0 -10
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleAbstractTypeResolver.java +0 -86
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleDeserializers.java +0 -130
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleKeyDeserializers.java +0 -59
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleModule.java +0 -265
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleSerializers.java +0 -206
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleValueInstantiators.java +0 -45
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/package-info.java +0 -16
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/package-info.java +0 -34
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/AnyGetterWriter.java +0 -48
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ArraySerializers.java +0 -7
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BasicSerializerFactory.java +0 -806
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyFilter.java +0 -30
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyWriter.java +0 -512
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializer.java +0 -126
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerBuilder.java +0 -140
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerFactory.java +0 -780
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerModifier.java +0 -95
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ContainerSerializers.java +0 -8
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/CustomSerializerFactory.java +0 -293
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/EnumSerializer.java +0 -17
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilterProvider.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilteredBeanPropertyWriter.java +0 -96
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/JdkSerializers.java +0 -11
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/MapSerializer.java +0 -58
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/PropertyBuilder.java +0 -372
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ScalarSerializerBase.java +0 -18
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/SerializerBase.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdKeySerializer.java +0 -10
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializerProvider.java +0 -852
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializers.java +0 -372
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ToStringSerializer.java +0 -14
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/FailingSerializer.java +0 -43
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/JsonSerializerMap.java +0 -93
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/PropertySerializerMap.java +0 -231
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/ReadOnlyClassToSerializerMap.java +0 -73
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SerializerCache.java +0 -304
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleBeanPropertyFilter.java +0 -109
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java +0 -114
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnknownSerializer.java +0 -54
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanPropertyWriter.java +0 -99
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanSerializer.java +0 -76
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/package-info.java +0 -5
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/package-info.java +0 -5
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/AsArraySerializerBase.java +0 -185
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/BeanSerializerBase.java +0 -340
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CalendarSerializer.java +0 -43
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CollectionSerializer.java +0 -113
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ContainerSerializerBase.java +0 -51
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/DateSerializer.java +0 -42
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumMapSerializer.java +0 -218
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSerializer.java +0 -84
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSetSerializer.java +0 -47
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IndexedStringListSerializer.java +0 -116
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/InetAddressSerializer.java +0 -51
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IterableSerializer.java +0 -63
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/JsonValueSerializer.java +0 -233
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/MapSerializer.java +0 -422
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NonTypedScalarSerializerBase.java +0 -34
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NullSerializer.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ObjectArraySerializer.java +0 -281
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/RawSerializer.java +0 -52
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ScalarSerializerBase.java +0 -52
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableSerializer.java +0 -99
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableWithTypeSerializer.java +0 -90
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializerBase.java +0 -184
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StaticListSerializerBase.java +0 -46
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdArraySerializers.java +0 -476
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdContainerSerializers.java +0 -249
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdJdkSerializers.java +0 -195
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializer.java +0 -43
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializers.java +0 -95
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringCollectionSerializer.java +0 -119
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringSerializer.java +0 -36
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TimeZoneSerializer.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ToStringSerializer.java +0 -73
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TokenBufferSerializer.java +0 -66
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ArrayType.java +0 -260
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ClassKey.java +0 -94
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionLikeType.java +0 -204
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionType.java +0 -94
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/HierarchicType.java +0 -88
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapLikeType.java +0 -265
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapType.java +0 -146
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/SimpleType.java +0 -250
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBase.java +0 -148
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBindings.java +0 -351
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeFactory.java +0 -1165
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeModifier.java +0 -38
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeParser.java +0 -134
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/package-info.java +0 -10
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Annotations.java +0 -23
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ArrayBuilders.java +0 -293
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/BeanUtil.java +0 -260
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ClassUtil.java +0 -645
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Comparators.java +0 -48
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumResolver.java +0 -108
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumValues.java +0 -82
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601DateFormat.java +0 -52
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601Utils.java +0 -230
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONPObject.java +0 -105
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONWrappedObject.java +0 -117
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LRUMap.java +0 -28
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LinkedNode.java +0 -45
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Named.java +0 -10
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ObjectBuffer.java +0 -257
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/PrimitiveArrayBuilder.java +0 -180
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Provider.java +0 -21
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/RootNameLookup.java +0 -54
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/StdDateFormat.java +0 -348
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/package-info.java +0 -4
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ArrayNode.java +0 -758
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BaseJsonNode.java +0 -122
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BigIntegerNode.java +0 -104
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BinaryNode.java +0 -136
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BooleanNode.java +0 -84
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ContainerNode.java +0 -185
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DecimalNode.java +0 -96
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DoubleNode.java +0 -106
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/IntNode.java +0 -122
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/JsonNodeFactory.java +0 -222
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/LongNode.java +0 -99
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/MissingNode.java +0 -97
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NodeCursor.java +0 -222
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NullNode.java +0 -58
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NumericNode.java +0 -72
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ObjectNode.java +0 -696
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/POJONode.java +0 -145
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TextNode.java +0 -299
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TreeTraversingParser.java +0 -383
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java +0 -58
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/package-info.java +0 -8
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/package-info.java +0 -30
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSchema.java +0 -82
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSerializableSchema.java +0 -46
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/SchemaAware.java +0 -25
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/package-info.java +0 -5
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/BytesToNameCanonicalizer.java +0 -969
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/CharsToNameCanonicalizer.java +0 -578
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name.java +0 -50
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name1.java +0 -44
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java +0 -40
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name3.java +0 -39
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/NameN.java +0 -68
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/package-info.java +0 -5
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/JavaType.java +0 -503
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/TypeReference.java +0 -60
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/package-info.java +0 -8
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/BufferRecycler.java +0 -109
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/ByteArrayBuilder.java +0 -294
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/CharTypes.java +0 -237
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/DefaultPrettyPrinter.java +0 -282
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/InternCache.java +0 -49
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonGeneratorDelegate.java +0 -273
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserDelegate.java +0 -251
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserSequence.java +0 -150
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/MinimalPrettyPrinter.java +0 -152
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TextBuffer.java +0 -707
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TokenBuffer.java +0 -1233
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/VersionUtil.java +0 -79
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/package-info.java +0 -4
@@ -1,23 +0,0 @@
|
|
1
|
-
package sh.calaba.org.codehaus.jackson.map.ser;
|
2
|
-
|
3
|
-
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
4
|
-
|
5
|
-
/**
|
6
|
-
* @deprecated Since 1.9 use {@link sh.calaba.org.codehaus.jackson.map.ser.std.SerializerBase}
|
7
|
-
*/
|
8
|
-
@Deprecated
|
9
|
-
public abstract class SerializerBase<T>
|
10
|
-
extends sh.calaba.org.codehaus.jackson.map.ser.std.SerializerBase<T>
|
11
|
-
{
|
12
|
-
protected SerializerBase(Class<T> t) {
|
13
|
-
super(t);
|
14
|
-
}
|
15
|
-
|
16
|
-
protected SerializerBase(JavaType type) {
|
17
|
-
super(type);
|
18
|
-
}
|
19
|
-
|
20
|
-
protected SerializerBase(Class<?> t, boolean dummy) {
|
21
|
-
super(t, dummy);
|
22
|
-
}
|
23
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
package sh.calaba.org.codehaus.jackson.map.ser;
|
2
|
-
/**
|
3
|
-
* @deprecated Since 1.9 use {@link org.codehaus.jackson.map.ser.std.StdKeySerializer} instead
|
4
|
-
*/
|
5
|
-
@Deprecated
|
6
|
-
public final class StdKeySerializer
|
7
|
-
extends sh.calaba.org.codehaus.jackson.map.ser.std.StdKeySerializer
|
8
|
-
{
|
9
|
-
final static StdKeySerializer instace = new StdKeySerializer();
|
10
|
-
}
|
@@ -1,852 +0,0 @@
|
|
1
|
-
package sh.calaba.org.codehaus.jackson.map.ser;
|
2
|
-
|
3
|
-
import java.io.IOException;
|
4
|
-
import java.text.DateFormat;
|
5
|
-
import java.util.Date;
|
6
|
-
|
7
|
-
|
8
|
-
import sh.calaba.org.codehaus.jackson.*;
|
9
|
-
import sh.calaba.org.codehaus.jackson.map.*;
|
10
|
-
import sh.calaba.org.codehaus.jackson.map.ser.impl.FailingSerializer;
|
11
|
-
import sh.calaba.org.codehaus.jackson.map.ser.impl.ReadOnlyClassToSerializerMap;
|
12
|
-
import sh.calaba.org.codehaus.jackson.map.ser.impl.SerializerCache;
|
13
|
-
import sh.calaba.org.codehaus.jackson.map.ser.impl.UnknownSerializer;
|
14
|
-
import sh.calaba.org.codehaus.jackson.map.ser.std.NullSerializer;
|
15
|
-
import sh.calaba.org.codehaus.jackson.map.ser.std.StdKeySerializer;
|
16
|
-
import sh.calaba.org.codehaus.jackson.map.ser.std.StdKeySerializers;
|
17
|
-
import sh.calaba.org.codehaus.jackson.map.util.ClassUtil;
|
18
|
-
import sh.calaba.org.codehaus.jackson.map.util.RootNameLookup;
|
19
|
-
import sh.calaba.org.codehaus.jackson.node.ObjectNode;
|
20
|
-
import sh.calaba.org.codehaus.jackson.schema.JsonSchema;
|
21
|
-
import sh.calaba.org.codehaus.jackson.schema.SchemaAware;
|
22
|
-
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Default {@link SerializerProvider} implementation. Handles
|
26
|
-
* caching aspects of serializer handling; all construction details
|
27
|
-
* are delegated to {@link SerializerFactory} instance.
|
28
|
-
*<p>
|
29
|
-
* One note about implementation: the main instance constructed will
|
30
|
-
* be so-called "blueprint" object, and will NOT be used during actual
|
31
|
-
* serialization. Rather, an "instance" instance is created so that
|
32
|
-
* state can be carried along, as well as to avoid synchronization
|
33
|
-
* during serializer access. Because of this, if sub-classing, one
|
34
|
-
* must override method {@link #createInstance}: if this is not done,
|
35
|
-
* an exception will get thrown as base class verifies that the
|
36
|
-
* instance has same class as the blueprint
|
37
|
-
* (<code>instance.getClass() == blueprint.getClass()</code>).
|
38
|
-
* Check is done to prevent weird bugs that would otherwise occur.
|
39
|
-
*<p>
|
40
|
-
* Starting with version 1.5, provider is also responsible for
|
41
|
-
* some parts of type serialization; specifically for locating
|
42
|
-
* proper type serializers to use for types.
|
43
|
-
*/
|
44
|
-
public class StdSerializerProvider
|
45
|
-
extends SerializerProvider
|
46
|
-
{
|
47
|
-
/**
|
48
|
-
* Setting for determining whether mappings for "unknown classes" should be
|
49
|
-
* cached for faster resolution. Usually this isn't needed, but maybe it
|
50
|
-
* is in some cases?
|
51
|
-
*/
|
52
|
-
final static boolean CACHE_UNKNOWN_MAPPINGS = false;
|
53
|
-
|
54
|
-
public final static JsonSerializer<Object> DEFAULT_NULL_KEY_SERIALIZER =
|
55
|
-
new FailingSerializer("Null key for a Map not allowed in JSON (use a converting NullKeySerializer?)");
|
56
|
-
|
57
|
-
/**
|
58
|
-
* @deprecated Since 1.9, use {@link StdKeySerializers} instead
|
59
|
-
*/
|
60
|
-
@Deprecated
|
61
|
-
public final static JsonSerializer<Object> DEFAULT_KEY_SERIALIZER = new StdKeySerializer();
|
62
|
-
|
63
|
-
public final static JsonSerializer<Object> DEFAULT_UNKNOWN_SERIALIZER = new UnknownSerializer();
|
64
|
-
|
65
|
-
/*
|
66
|
-
/**********************************************************
|
67
|
-
/* Configuration, factories
|
68
|
-
/**********************************************************
|
69
|
-
*/
|
70
|
-
|
71
|
-
final protected SerializerFactory _serializerFactory;
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Cache for doing type-to-value-serializer lookups.
|
75
|
-
*/
|
76
|
-
final protected SerializerCache _serializerCache;
|
77
|
-
|
78
|
-
/**
|
79
|
-
* Helper object for keeping track of introspected root names
|
80
|
-
*/
|
81
|
-
final protected RootNameLookup _rootNames;
|
82
|
-
|
83
|
-
/*
|
84
|
-
/**********************************************************
|
85
|
-
/* Configuration, specialized serializers
|
86
|
-
/**********************************************************
|
87
|
-
*/
|
88
|
-
|
89
|
-
/**
|
90
|
-
* Serializer that gets called for values of types for which no
|
91
|
-
* serializers can be constructed.
|
92
|
-
*<p>
|
93
|
-
* The default serializer will simply thrown an exception; a possible
|
94
|
-
* alternative that can be used would be
|
95
|
-
* {@link ToStringSerializer}.
|
96
|
-
*/
|
97
|
-
protected JsonSerializer<Object> _unknownTypeSerializer = DEFAULT_UNKNOWN_SERIALIZER;
|
98
|
-
|
99
|
-
/**
|
100
|
-
* Serializer used to output non-null keys of Maps (which will get
|
101
|
-
* output as JSON Objects), if not null; if null, us the standard
|
102
|
-
* default key serializer.
|
103
|
-
*/
|
104
|
-
protected JsonSerializer<Object> _keySerializer;
|
105
|
-
|
106
|
-
/**
|
107
|
-
* Serializer used to output a null value. Default implementation
|
108
|
-
* writes nulls using {@link JsonGenerator#writeNull}.
|
109
|
-
*/
|
110
|
-
protected JsonSerializer<Object> _nullValueSerializer = NullSerializer.instance;
|
111
|
-
|
112
|
-
/**
|
113
|
-
* Serializer used to (try to) output a null key, due to an entry of
|
114
|
-
* {@link java.util.Map} having null key.
|
115
|
-
* The default implementation will throw an exception if this happens;
|
116
|
-
* alternative implementation (like one that would write an Empty String)
|
117
|
-
* can be defined.
|
118
|
-
*/
|
119
|
-
protected JsonSerializer<Object> _nullKeySerializer = DEFAULT_NULL_KEY_SERIALIZER;
|
120
|
-
|
121
|
-
/*
|
122
|
-
/**********************************************************
|
123
|
-
/* State, for non-blueprint instances
|
124
|
-
/**********************************************************
|
125
|
-
*/
|
126
|
-
|
127
|
-
/**
|
128
|
-
* For fast lookups, we will have a local non-shared read-only
|
129
|
-
* map that contains serializers previously fetched.
|
130
|
-
*/
|
131
|
-
protected final ReadOnlyClassToSerializerMap _knownSerializers;
|
132
|
-
|
133
|
-
/**
|
134
|
-
* Lazily acquired and instantiated formatter object: initialized
|
135
|
-
* first time it is needed, reused afterwards. Used via instances
|
136
|
-
* (not blueprints), so that access need not be thread-safe.
|
137
|
-
*/
|
138
|
-
protected DateFormat _dateFormat;
|
139
|
-
|
140
|
-
/*
|
141
|
-
/**********************************************************
|
142
|
-
/* Life-cycle
|
143
|
-
/**********************************************************
|
144
|
-
*/
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Constructor for creating master (or "blue-print") provider object,
|
148
|
-
* which is only used as the template for constructing per-binding
|
149
|
-
* instances.
|
150
|
-
*/
|
151
|
-
public StdSerializerProvider()
|
152
|
-
{
|
153
|
-
super(null);
|
154
|
-
_serializerFactory = null;
|
155
|
-
_serializerCache = new SerializerCache();
|
156
|
-
// Blueprints doesn't have access to any serializers...
|
157
|
-
_knownSerializers = null;
|
158
|
-
_rootNames = new RootNameLookup();
|
159
|
-
}
|
160
|
-
|
161
|
-
/**
|
162
|
-
* "Copy-constructor", used from {@link #createInstance} (or by
|
163
|
-
* sub-classes)
|
164
|
-
*
|
165
|
-
* @param src Blueprint object used as the baseline for this instance
|
166
|
-
*/
|
167
|
-
protected StdSerializerProvider(SerializationConfig config,
|
168
|
-
StdSerializerProvider src, SerializerFactory f)
|
169
|
-
{
|
170
|
-
super(config);
|
171
|
-
if (config == null) {
|
172
|
-
throw new NullPointerException();
|
173
|
-
}
|
174
|
-
_serializerFactory = f;
|
175
|
-
|
176
|
-
_serializerCache = src._serializerCache;
|
177
|
-
_unknownTypeSerializer = src._unknownTypeSerializer;
|
178
|
-
_keySerializer = src._keySerializer;
|
179
|
-
_nullValueSerializer = src._nullValueSerializer;
|
180
|
-
_nullKeySerializer = src._nullKeySerializer;
|
181
|
-
_rootNames = src._rootNames;
|
182
|
-
|
183
|
-
/* Non-blueprint instances do have a read-only map; one that doesn't
|
184
|
-
* need synchronization for lookups.
|
185
|
-
*/
|
186
|
-
_knownSerializers = _serializerCache.getReadOnlyLookupMap();
|
187
|
-
}
|
188
|
-
|
189
|
-
/**
|
190
|
-
* Overridable method, used to create a non-blueprint instances from the blueprint.
|
191
|
-
* This is needed to retain state during serialization.
|
192
|
-
*/
|
193
|
-
protected StdSerializerProvider createInstance(SerializationConfig config, SerializerFactory jsf)
|
194
|
-
{
|
195
|
-
return new StdSerializerProvider(config, this, jsf);
|
196
|
-
}
|
197
|
-
|
198
|
-
/*
|
199
|
-
/**********************************************************
|
200
|
-
/* Configuration methods
|
201
|
-
/**********************************************************
|
202
|
-
*/
|
203
|
-
|
204
|
-
@Override
|
205
|
-
public void setDefaultKeySerializer(JsonSerializer<Object> ks)
|
206
|
-
{
|
207
|
-
if (ks == null) {
|
208
|
-
throw new IllegalArgumentException("Can not pass null JsonSerializer");
|
209
|
-
}
|
210
|
-
_keySerializer = ks;
|
211
|
-
}
|
212
|
-
|
213
|
-
@Override
|
214
|
-
public void setNullValueSerializer(JsonSerializer<Object> nvs)
|
215
|
-
{
|
216
|
-
if (nvs == null) {
|
217
|
-
throw new IllegalArgumentException("Can not pass null JsonSerializer");
|
218
|
-
}
|
219
|
-
_nullValueSerializer = nvs;
|
220
|
-
}
|
221
|
-
|
222
|
-
@Override
|
223
|
-
public void setNullKeySerializer(JsonSerializer<Object> nks)
|
224
|
-
{
|
225
|
-
if (nks == null) {
|
226
|
-
throw new IllegalArgumentException("Can not pass null JsonSerializer");
|
227
|
-
}
|
228
|
-
_nullKeySerializer = nks;
|
229
|
-
}
|
230
|
-
|
231
|
-
/*
|
232
|
-
/**********************************************************
|
233
|
-
/* Methods to be called by ObjectMapper
|
234
|
-
/**********************************************************
|
235
|
-
*/
|
236
|
-
|
237
|
-
@Override
|
238
|
-
public final void serializeValue(SerializationConfig config,
|
239
|
-
JsonGenerator jgen, Object value, SerializerFactory jsf)
|
240
|
-
throws IOException, JsonGenerationException
|
241
|
-
{
|
242
|
-
if (jsf == null) {
|
243
|
-
throw new IllegalArgumentException("Can not pass null serializerFactory");
|
244
|
-
}
|
245
|
-
|
246
|
-
/* First: we need a separate instance, which will hold a copy of the
|
247
|
-
* non-shared ("local") read-only lookup Map for fast
|
248
|
-
* class-to-serializer lookup
|
249
|
-
*/
|
250
|
-
StdSerializerProvider inst = createInstance(config, jsf);
|
251
|
-
// sanity check to avoid weird errors; to ensure sub-classes do override createInstance
|
252
|
-
if (inst.getClass() != getClass()) {
|
253
|
-
throw new IllegalStateException("Broken serializer provider: createInstance returned instance of type "+inst.getClass()+"; blueprint of type "+getClass());
|
254
|
-
}
|
255
|
-
// And then we can do actual serialization, through the instance
|
256
|
-
inst._serializeValue(jgen, value);
|
257
|
-
}
|
258
|
-
|
259
|
-
@Override
|
260
|
-
public final void serializeValue(SerializationConfig config, JsonGenerator jgen,
|
261
|
-
Object value, JavaType rootType, SerializerFactory jsf)
|
262
|
-
throws IOException, JsonGenerationException
|
263
|
-
{
|
264
|
-
if (jsf == null) {
|
265
|
-
throw new IllegalArgumentException("Can not pass null serializerFactory");
|
266
|
-
}
|
267
|
-
StdSerializerProvider inst = createInstance(config, jsf);
|
268
|
-
if (inst.getClass() != getClass()) {
|
269
|
-
throw new IllegalStateException("Broken serializer provider: createInstance returned instance of type "+inst.getClass()+"; blueprint of type "+getClass());
|
270
|
-
}
|
271
|
-
inst._serializeValue(jgen, value, rootType);
|
272
|
-
}
|
273
|
-
|
274
|
-
@Override
|
275
|
-
public JsonSchema generateJsonSchema(Class<?> type, SerializationConfig config, SerializerFactory jsf)
|
276
|
-
throws JsonMappingException
|
277
|
-
{
|
278
|
-
if (type == null) {
|
279
|
-
throw new IllegalArgumentException("A class must be provided");
|
280
|
-
}
|
281
|
-
|
282
|
-
/* First: we need a separate instance, which will hold a copy of the
|
283
|
-
* non-shared ("local") read-only lookup Map for fast
|
284
|
-
* class-to-serializer lookup
|
285
|
-
*/
|
286
|
-
StdSerializerProvider inst = createInstance(config, jsf);
|
287
|
-
// sanity check to avoid weird errors; to ensure sub-classes do override createInstance
|
288
|
-
if (inst.getClass() != getClass()) {
|
289
|
-
throw new IllegalStateException("Broken serializer provider: createInstance returned instance of type "+inst.getClass()+"; blueprint of type "+getClass());
|
290
|
-
}
|
291
|
-
/* no need for embedded type information for JSON schema generation (all
|
292
|
-
* type information it needs is accessible via "untyped" serializer)
|
293
|
-
*/
|
294
|
-
JsonSerializer<Object> ser = inst.findValueSerializer(type, null);
|
295
|
-
JsonNode schemaNode = (ser instanceof SchemaAware) ?
|
296
|
-
((SchemaAware) ser).getSchema(inst, null) :
|
297
|
-
JsonSchema.getDefaultSchemaNode();
|
298
|
-
if (!(schemaNode instanceof ObjectNode)) {
|
299
|
-
throw new IllegalArgumentException("Class " + type.getName() +
|
300
|
-
" would not be serialized as a JSON object and therefore has no schema");
|
301
|
-
}
|
302
|
-
|
303
|
-
return new JsonSchema((ObjectNode) schemaNode);
|
304
|
-
}
|
305
|
-
|
306
|
-
@Override
|
307
|
-
public boolean hasSerializerFor(SerializationConfig config,
|
308
|
-
Class<?> cls, SerializerFactory jsf)
|
309
|
-
{
|
310
|
-
return createInstance(config, jsf)._findExplicitUntypedSerializer(cls, null) != null;
|
311
|
-
}
|
312
|
-
|
313
|
-
@Override
|
314
|
-
public int cachedSerializersCount() {
|
315
|
-
return _serializerCache.size();
|
316
|
-
}
|
317
|
-
|
318
|
-
@Override
|
319
|
-
public void flushCachedSerializers() {
|
320
|
-
_serializerCache.flush();
|
321
|
-
}
|
322
|
-
|
323
|
-
/*
|
324
|
-
/**********************************************************
|
325
|
-
/* Abstract method implementations, value/type serializers
|
326
|
-
/**********************************************************
|
327
|
-
*/
|
328
|
-
|
329
|
-
@Override
|
330
|
-
public JsonSerializer<Object> findValueSerializer(Class<?> valueType,
|
331
|
-
BeanProperty property)
|
332
|
-
throws JsonMappingException
|
333
|
-
{
|
334
|
-
// Fast lookup from local lookup thingy works?
|
335
|
-
JsonSerializer<Object> ser = _knownSerializers.untypedValueSerializer(valueType);
|
336
|
-
if (ser == null) {
|
337
|
-
// If not, maybe shared map already has it?
|
338
|
-
ser = _serializerCache.untypedValueSerializer(valueType);
|
339
|
-
if (ser == null) {
|
340
|
-
// ... possibly as fully typed?
|
341
|
-
ser = _serializerCache.untypedValueSerializer(_config.constructType(valueType));
|
342
|
-
if (ser == null) {
|
343
|
-
// If neither, must create
|
344
|
-
ser = _createAndCacheUntypedSerializer(valueType, property);
|
345
|
-
// Not found? Must use the unknown type serializer
|
346
|
-
/* Couldn't create? Need to return the fallback serializer, which
|
347
|
-
* most likely will report an error: but one question is whether
|
348
|
-
* we should cache it?
|
349
|
-
*/
|
350
|
-
if (ser == null) {
|
351
|
-
ser = getUnknownTypeSerializer(valueType);
|
352
|
-
// Should this be added to lookups?
|
353
|
-
if (CACHE_UNKNOWN_MAPPINGS) {
|
354
|
-
_serializerCache.addAndResolveNonTypedSerializer(valueType, ser, this);
|
355
|
-
}
|
356
|
-
return ser;
|
357
|
-
}
|
358
|
-
}
|
359
|
-
}
|
360
|
-
}
|
361
|
-
return _handleContextualResolvable(ser, property);
|
362
|
-
}
|
363
|
-
|
364
|
-
/**
|
365
|
-
* This variant was added in 1.5, to allow for efficient access using full
|
366
|
-
* structured types, not just classes. This is necessary for accurate
|
367
|
-
* handling of external type information, to handle polymorphic types.
|
368
|
-
*/
|
369
|
-
@Override
|
370
|
-
public JsonSerializer<Object> findValueSerializer(JavaType valueType, BeanProperty property)
|
371
|
-
throws JsonMappingException
|
372
|
-
{
|
373
|
-
// Fast lookup from local lookup thingy works?
|
374
|
-
JsonSerializer<Object> ser = _knownSerializers.untypedValueSerializer(valueType);
|
375
|
-
if (ser == null) {
|
376
|
-
// If not, maybe shared map already has it?
|
377
|
-
ser = _serializerCache.untypedValueSerializer(valueType);
|
378
|
-
if (ser == null) {
|
379
|
-
// If neither, must create
|
380
|
-
ser = _createAndCacheUntypedSerializer(valueType, property);
|
381
|
-
// Not found? Must use the unknown type serializer
|
382
|
-
/* Couldn't create? Need to return the fallback serializer, which
|
383
|
-
* most likely will report an error: but one question is whether
|
384
|
-
* we should cache it?
|
385
|
-
*/
|
386
|
-
if (ser == null) {
|
387
|
-
ser = getUnknownTypeSerializer(valueType.getRawClass());
|
388
|
-
// Should this be added to lookups?
|
389
|
-
if (CACHE_UNKNOWN_MAPPINGS) {
|
390
|
-
_serializerCache.addAndResolveNonTypedSerializer(valueType, ser, this);
|
391
|
-
}
|
392
|
-
return ser;
|
393
|
-
}
|
394
|
-
}
|
395
|
-
}
|
396
|
-
return _handleContextualResolvable(ser, property);
|
397
|
-
}
|
398
|
-
|
399
|
-
/**
|
400
|
-
* @param cache Whether resulting value serializer should be cached or not; this is just
|
401
|
-
* a hint
|
402
|
-
*/
|
403
|
-
@Override
|
404
|
-
public JsonSerializer<Object> findTypedValueSerializer(Class<?> valueType, boolean cache,
|
405
|
-
BeanProperty property)
|
406
|
-
throws JsonMappingException
|
407
|
-
{
|
408
|
-
// Two-phase lookups; local non-shared cache, then shared:
|
409
|
-
JsonSerializer<Object> ser = _knownSerializers.typedValueSerializer(valueType);
|
410
|
-
if (ser != null) {
|
411
|
-
return ser;
|
412
|
-
}
|
413
|
-
// If not, maybe shared map already has it?
|
414
|
-
ser = _serializerCache.typedValueSerializer(valueType);
|
415
|
-
if (ser != null) {
|
416
|
-
return ser;
|
417
|
-
}
|
418
|
-
|
419
|
-
// Well, let's just compose from pieces:
|
420
|
-
ser = findValueSerializer(valueType, property);
|
421
|
-
TypeSerializer typeSer = _serializerFactory.createTypeSerializer(_config,
|
422
|
-
_config.constructType(valueType), property);
|
423
|
-
if (typeSer != null) {
|
424
|
-
ser = new WrappedSerializer(typeSer, ser);
|
425
|
-
}
|
426
|
-
if (cache) {
|
427
|
-
_serializerCache.addTypedSerializer(valueType, ser);
|
428
|
-
}
|
429
|
-
return ser;
|
430
|
-
}
|
431
|
-
|
432
|
-
@Override
|
433
|
-
public JsonSerializer<Object> findTypedValueSerializer(JavaType valueType, boolean cache,
|
434
|
-
BeanProperty property)
|
435
|
-
throws JsonMappingException
|
436
|
-
{
|
437
|
-
// Two-phase lookups; local non-shared cache, then shared:
|
438
|
-
JsonSerializer<Object> ser = _knownSerializers.typedValueSerializer(valueType);
|
439
|
-
if (ser != null) {
|
440
|
-
return ser;
|
441
|
-
}
|
442
|
-
// If not, maybe shared map already has it?
|
443
|
-
ser = _serializerCache.typedValueSerializer(valueType);
|
444
|
-
if (ser != null) {
|
445
|
-
return ser;
|
446
|
-
}
|
447
|
-
|
448
|
-
// Well, let's just compose from pieces:
|
449
|
-
ser = findValueSerializer(valueType, property);
|
450
|
-
TypeSerializer typeSer = _serializerFactory.createTypeSerializer(_config, valueType, property);
|
451
|
-
if (typeSer != null) {
|
452
|
-
ser = new WrappedSerializer(typeSer, ser);
|
453
|
-
}
|
454
|
-
if (cache) {
|
455
|
-
_serializerCache.addTypedSerializer(valueType, ser);
|
456
|
-
}
|
457
|
-
return ser;
|
458
|
-
}
|
459
|
-
|
460
|
-
/*
|
461
|
-
/**********************************************************
|
462
|
-
/* Abstract method implementations, other serializers
|
463
|
-
/**********************************************************
|
464
|
-
*/
|
465
|
-
|
466
|
-
@SuppressWarnings("unchecked")
|
467
|
-
@Override
|
468
|
-
public JsonSerializer<Object> findKeySerializer(JavaType keyType, BeanProperty property)
|
469
|
-
throws JsonMappingException
|
470
|
-
{
|
471
|
-
JsonSerializer<Object> ser = _serializerFactory.createKeySerializer(_config, keyType, property);
|
472
|
-
|
473
|
-
// First things first: maybe there are registered custom implementations
|
474
|
-
// if not, use default one:
|
475
|
-
if (ser == null) {
|
476
|
-
if (_keySerializer == null) {
|
477
|
-
ser = StdKeySerializers.getStdKeySerializer(keyType);
|
478
|
-
} else {
|
479
|
-
ser = _keySerializer;
|
480
|
-
}
|
481
|
-
}
|
482
|
-
// 25-Feb-2011, tatu: As per [JACKSON-519], need to ensure contextuality works here, too
|
483
|
-
if (ser instanceof ContextualSerializer<?>) {
|
484
|
-
ContextualSerializer<?> contextual = (ContextualSerializer<?>) ser;
|
485
|
-
ser = (JsonSerializer<Object>)contextual.createContextual(_config, property);
|
486
|
-
}
|
487
|
-
return ser;
|
488
|
-
}
|
489
|
-
|
490
|
-
@Override
|
491
|
-
public JsonSerializer<Object> getNullKeySerializer() {
|
492
|
-
return _nullKeySerializer;
|
493
|
-
}
|
494
|
-
|
495
|
-
@Override
|
496
|
-
public JsonSerializer<Object> getNullValueSerializer() {
|
497
|
-
return _nullValueSerializer;
|
498
|
-
}
|
499
|
-
|
500
|
-
@Override
|
501
|
-
public JsonSerializer<Object> getUnknownTypeSerializer(Class<?> unknownType) {
|
502
|
-
return _unknownTypeSerializer;
|
503
|
-
}
|
504
|
-
|
505
|
-
/*
|
506
|
-
/**********************************************************
|
507
|
-
/* Abstract method impls, convenience methods
|
508
|
-
/**********************************************************
|
509
|
-
*/
|
510
|
-
|
511
|
-
/**
|
512
|
-
* @param timestamp Millisecond timestamp that defines date, if available;
|
513
|
-
*/
|
514
|
-
@Override
|
515
|
-
public final void defaultSerializeDateValue(long timestamp, JsonGenerator jgen)
|
516
|
-
throws IOException, JsonProcessingException
|
517
|
-
{
|
518
|
-
// [JACKSON-87]: Support both numeric timestamps and textual
|
519
|
-
if (isEnabled(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS)) {
|
520
|
-
jgen.writeNumber(timestamp);
|
521
|
-
} else {
|
522
|
-
if (_dateFormat == null) {
|
523
|
-
// must create a clone since Formats are not thread-safe:
|
524
|
-
_dateFormat = (DateFormat)_config.getDateFormat().clone();
|
525
|
-
}
|
526
|
-
jgen.writeString(_dateFormat.format(new Date(timestamp)));
|
527
|
-
}
|
528
|
-
}
|
529
|
-
|
530
|
-
@Override
|
531
|
-
public final void defaultSerializeDateValue(Date date, JsonGenerator jgen)
|
532
|
-
throws IOException, JsonProcessingException
|
533
|
-
{
|
534
|
-
// [JACKSON-87]: Support both numeric timestamps and textual
|
535
|
-
if (isEnabled(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS)) {
|
536
|
-
jgen.writeNumber(date.getTime());
|
537
|
-
} else {
|
538
|
-
if (_dateFormat == null) {
|
539
|
-
DateFormat blueprint = _config.getDateFormat();
|
540
|
-
// must create a clone since Formats are not thread-safe:
|
541
|
-
_dateFormat = (DateFormat)blueprint.clone();
|
542
|
-
}
|
543
|
-
jgen.writeString(_dateFormat.format(date));
|
544
|
-
}
|
545
|
-
}
|
546
|
-
|
547
|
-
@Override
|
548
|
-
public void defaultSerializeDateKey(long timestamp, JsonGenerator jgen)
|
549
|
-
throws IOException, JsonProcessingException
|
550
|
-
{
|
551
|
-
if (isEnabled(SerializationConfig.Feature.WRITE_DATE_KEYS_AS_TIMESTAMPS)) {
|
552
|
-
jgen.writeFieldName(String.valueOf(timestamp));
|
553
|
-
} else {
|
554
|
-
if (_dateFormat == null) {
|
555
|
-
DateFormat blueprint = _config.getDateFormat();
|
556
|
-
// must create a clone since Formats are not thread-safe:
|
557
|
-
_dateFormat = (DateFormat)blueprint.clone();
|
558
|
-
}
|
559
|
-
jgen.writeFieldName(_dateFormat.format(new Date(timestamp)));
|
560
|
-
}
|
561
|
-
}
|
562
|
-
|
563
|
-
@Override
|
564
|
-
public void defaultSerializeDateKey(Date date, JsonGenerator jgen)
|
565
|
-
throws IOException, JsonProcessingException
|
566
|
-
{
|
567
|
-
if (isEnabled(SerializationConfig.Feature.WRITE_DATE_KEYS_AS_TIMESTAMPS)) {
|
568
|
-
jgen.writeFieldName(String.valueOf(date.getTime()));
|
569
|
-
} else {
|
570
|
-
if (_dateFormat == null) {
|
571
|
-
DateFormat blueprint = _config.getDateFormat();
|
572
|
-
// must create a clone since Formats are not thread-safe:
|
573
|
-
_dateFormat = (DateFormat)blueprint.clone();
|
574
|
-
}
|
575
|
-
jgen.writeFieldName(_dateFormat.format(date));
|
576
|
-
}
|
577
|
-
}
|
578
|
-
|
579
|
-
/*
|
580
|
-
/**********************************************************
|
581
|
-
/* Helper methods: can be overridden by sub-classes
|
582
|
-
/**********************************************************
|
583
|
-
*/
|
584
|
-
|
585
|
-
/**
|
586
|
-
* Method called on the actual non-blueprint provider instance object,
|
587
|
-
* to kick off the serialization.
|
588
|
-
*/
|
589
|
-
protected void _serializeValue(JsonGenerator jgen, Object value)
|
590
|
-
throws IOException, JsonProcessingException
|
591
|
-
{
|
592
|
-
JsonSerializer<Object> ser;
|
593
|
-
boolean wrap;
|
594
|
-
|
595
|
-
if (value == null) {
|
596
|
-
ser = getNullValueSerializer();
|
597
|
-
wrap = false; // no name to use for wrapping; can't do!
|
598
|
-
} else {
|
599
|
-
Class<?> cls = value.getClass();
|
600
|
-
// true, since we do want to cache root-level typed serializers (ditto for null property)
|
601
|
-
ser = findTypedValueSerializer(cls, true, null);
|
602
|
-
// [JACKSON-163]
|
603
|
-
wrap = _config.isEnabled(SerializationConfig.Feature.WRAP_ROOT_VALUE);
|
604
|
-
if (wrap) {
|
605
|
-
jgen.writeStartObject();
|
606
|
-
jgen.writeFieldName(_rootNames.findRootName(value.getClass(), _config));
|
607
|
-
}
|
608
|
-
}
|
609
|
-
try {
|
610
|
-
ser.serialize(value, jgen, this);
|
611
|
-
if (wrap) {
|
612
|
-
jgen.writeEndObject();
|
613
|
-
}
|
614
|
-
} catch (IOException ioe) {
|
615
|
-
/* As per [JACKSON-99], should not wrap IOException or its
|
616
|
-
* sub-classes (like JsonProcessingException, JsonMappingException)
|
617
|
-
*/
|
618
|
-
throw ioe;
|
619
|
-
} catch (Exception e) {
|
620
|
-
// but others are wrapped
|
621
|
-
String msg = e.getMessage();
|
622
|
-
if (msg == null) {
|
623
|
-
msg = "[no message for "+e.getClass().getName()+"]";
|
624
|
-
}
|
625
|
-
throw new JsonMappingException(msg, e);
|
626
|
-
}
|
627
|
-
}
|
628
|
-
|
629
|
-
/**
|
630
|
-
* Method called on the actual non-blueprint provider instance object,
|
631
|
-
* to kick off the serialization, when root type is explicitly
|
632
|
-
* specified and not determined from value.
|
633
|
-
*/
|
634
|
-
protected void _serializeValue(JsonGenerator jgen, Object value, JavaType rootType)
|
635
|
-
throws IOException, JsonProcessingException
|
636
|
-
{
|
637
|
-
// [JACKSON-163]
|
638
|
-
boolean wrap;
|
639
|
-
|
640
|
-
JsonSerializer<Object> ser;
|
641
|
-
if (value == null) {
|
642
|
-
ser = getNullValueSerializer();
|
643
|
-
wrap = false;
|
644
|
-
} else {
|
645
|
-
// Let's ensure types are compatible at this point
|
646
|
-
if (!rootType.getRawClass().isAssignableFrom(value.getClass())) {
|
647
|
-
_reportIncompatibleRootType(value, rootType);
|
648
|
-
}
|
649
|
-
// root value, not reached via property:
|
650
|
-
ser = findTypedValueSerializer(rootType, true, null);
|
651
|
-
// [JACKSON-163]
|
652
|
-
wrap = _config.isEnabled(SerializationConfig.Feature.WRAP_ROOT_VALUE);
|
653
|
-
if (wrap) {
|
654
|
-
jgen.writeStartObject();
|
655
|
-
jgen.writeFieldName(_rootNames.findRootName(rootType, _config));
|
656
|
-
}
|
657
|
-
}
|
658
|
-
try {
|
659
|
-
ser.serialize(value, jgen, this);
|
660
|
-
if (wrap) {
|
661
|
-
jgen.writeEndObject();
|
662
|
-
}
|
663
|
-
} catch (IOException ioe) { // no wrapping for IO (and derived)
|
664
|
-
throw ioe;
|
665
|
-
} catch (Exception e) { // but others do need to be, to get path etc
|
666
|
-
String msg = e.getMessage();
|
667
|
-
if (msg == null) {
|
668
|
-
msg = "[no message for "+e.getClass().getName()+"]";
|
669
|
-
}
|
670
|
-
throw new JsonMappingException(msg, e);
|
671
|
-
}
|
672
|
-
}
|
673
|
-
|
674
|
-
protected void _reportIncompatibleRootType(Object value, JavaType rootType)
|
675
|
-
throws IOException, JsonProcessingException
|
676
|
-
{
|
677
|
-
/* 07-Jan-2010, tatu: As per [JACKSON-456] better handle distinction between wrapper types,
|
678
|
-
* primitives
|
679
|
-
*/
|
680
|
-
if (rootType.isPrimitive()) {
|
681
|
-
Class<?> wrapperType = ClassUtil.wrapperType(rootType.getRawClass());
|
682
|
-
// If it's just difference between wrapper, primitive, let it slide
|
683
|
-
if (wrapperType.isAssignableFrom(value.getClass())) {
|
684
|
-
return;
|
685
|
-
}
|
686
|
-
}
|
687
|
-
throw new JsonMappingException("Incompatible types: declared root type ("+rootType+") vs "
|
688
|
-
+value.getClass().getName());
|
689
|
-
}
|
690
|
-
|
691
|
-
/**
|
692
|
-
* Method that will try to find a serializer, either from cache
|
693
|
-
* or by constructing one; but will not return an "unknown" serializer
|
694
|
-
* if this can not be done but rather returns null.
|
695
|
-
*
|
696
|
-
* @return Serializer if one can be found, null if not.
|
697
|
-
*/
|
698
|
-
protected JsonSerializer<Object> _findExplicitUntypedSerializer(Class<?> runtimeType,
|
699
|
-
BeanProperty property)
|
700
|
-
{
|
701
|
-
// Fast lookup from local lookup thingy works?
|
702
|
-
JsonSerializer<Object> ser = _knownSerializers.untypedValueSerializer(runtimeType);
|
703
|
-
if (ser != null) {
|
704
|
-
return ser;
|
705
|
-
}
|
706
|
-
// If not, maybe shared map already has it?
|
707
|
-
ser = _serializerCache.untypedValueSerializer(runtimeType);
|
708
|
-
if (ser != null) {
|
709
|
-
return ser;
|
710
|
-
}
|
711
|
-
try {
|
712
|
-
return _createAndCacheUntypedSerializer(runtimeType, property);
|
713
|
-
} catch (Exception e) {
|
714
|
-
return null;
|
715
|
-
}
|
716
|
-
}
|
717
|
-
|
718
|
-
/*
|
719
|
-
/**********************************************************
|
720
|
-
/* Low-level methods for actually constructing and initializing
|
721
|
-
/* serializers
|
722
|
-
/**********************************************************
|
723
|
-
*/
|
724
|
-
|
725
|
-
/**
|
726
|
-
* Method that will try to construct a value serializer; and if
|
727
|
-
* one is successfully created, cache it for reuse.
|
728
|
-
*/
|
729
|
-
protected JsonSerializer<Object> _createAndCacheUntypedSerializer(Class<?> type,
|
730
|
-
BeanProperty property)
|
731
|
-
throws JsonMappingException
|
732
|
-
{
|
733
|
-
JsonSerializer<Object> ser;
|
734
|
-
try {
|
735
|
-
ser = _createUntypedSerializer(_config.constructType(type), property);
|
736
|
-
} catch (IllegalArgumentException iae) {
|
737
|
-
/* We better only expose checked exceptions, since those
|
738
|
-
* are what caller is expected to handle
|
739
|
-
*/
|
740
|
-
throw new JsonMappingException(iae.getMessage(), null, iae);
|
741
|
-
}
|
742
|
-
|
743
|
-
if (ser != null) {
|
744
|
-
_serializerCache.addAndResolveNonTypedSerializer(type, ser, this);
|
745
|
-
}
|
746
|
-
return ser;
|
747
|
-
}
|
748
|
-
|
749
|
-
/**
|
750
|
-
* @since 1.5
|
751
|
-
] */
|
752
|
-
protected JsonSerializer<Object> _createAndCacheUntypedSerializer(JavaType type,
|
753
|
-
BeanProperty property)
|
754
|
-
throws JsonMappingException
|
755
|
-
{
|
756
|
-
JsonSerializer<Object> ser;
|
757
|
-
try {
|
758
|
-
ser = _createUntypedSerializer(type, property);
|
759
|
-
} catch (IllegalArgumentException iae) {
|
760
|
-
/* We better only expose checked exceptions, since those
|
761
|
-
* are what caller is expected to handle
|
762
|
-
*/
|
763
|
-
throw new JsonMappingException(iae.getMessage(), null, iae);
|
764
|
-
}
|
765
|
-
|
766
|
-
if (ser != null) {
|
767
|
-
_serializerCache.addAndResolveNonTypedSerializer(type, ser, this);
|
768
|
-
}
|
769
|
-
return ser;
|
770
|
-
}
|
771
|
-
|
772
|
-
protected JsonSerializer<Object> _createUntypedSerializer(JavaType type,
|
773
|
-
BeanProperty property)
|
774
|
-
throws JsonMappingException
|
775
|
-
{
|
776
|
-
/* 10-Dec-2008, tatu: Is there a possibility of infinite loops
|
777
|
-
* here? Shouldn't be, given that we do not pass back-reference
|
778
|
-
* to this provider. But if there is, we'd need to sync calls,
|
779
|
-
* and keep track of creation chain to look for loops -- fairly
|
780
|
-
* easy to do, but won't add yet since it seems unnecessary.
|
781
|
-
*/
|
782
|
-
return (JsonSerializer<Object>)_serializerFactory.createSerializer(_config, type, property);
|
783
|
-
}
|
784
|
-
|
785
|
-
/**
|
786
|
-
* @since 1.8.5
|
787
|
-
*/
|
788
|
-
@SuppressWarnings("unchecked")
|
789
|
-
protected JsonSerializer<Object> _handleContextualResolvable(JsonSerializer<Object> ser,
|
790
|
-
BeanProperty property)
|
791
|
-
throws JsonMappingException
|
792
|
-
{
|
793
|
-
if (!(ser instanceof ContextualSerializer<?>)) {
|
794
|
-
return ser;
|
795
|
-
}
|
796
|
-
JsonSerializer<Object> ctxtSer = ((ContextualSerializer<Object>) ser).createContextual(_config, property);
|
797
|
-
if (ctxtSer != ser) {
|
798
|
-
// need to re-resolve?
|
799
|
-
if (ctxtSer instanceof ResolvableSerializer) {
|
800
|
-
((ResolvableSerializer) ctxtSer).resolve(this);
|
801
|
-
}
|
802
|
-
ser = ctxtSer;
|
803
|
-
}
|
804
|
-
return ser;
|
805
|
-
}
|
806
|
-
|
807
|
-
/*
|
808
|
-
/**********************************************************
|
809
|
-
/* Helper classes
|
810
|
-
/**********************************************************
|
811
|
-
*/
|
812
|
-
|
813
|
-
/**
|
814
|
-
* Simple serializer that will call configured type serializer, passing
|
815
|
-
* in configured data serializer, and exposing it all as a simple
|
816
|
-
* serializer.
|
817
|
-
*/
|
818
|
-
private final static class WrappedSerializer
|
819
|
-
extends JsonSerializer<Object>
|
820
|
-
{
|
821
|
-
final protected TypeSerializer _typeSerializer;
|
822
|
-
final protected JsonSerializer<Object> _serializer;
|
823
|
-
|
824
|
-
public WrappedSerializer(TypeSerializer typeSer, JsonSerializer<Object> ser)
|
825
|
-
{
|
826
|
-
super();
|
827
|
-
_typeSerializer = typeSer;
|
828
|
-
_serializer = ser;
|
829
|
-
}
|
830
|
-
|
831
|
-
@Override
|
832
|
-
public void serialize(Object value, JsonGenerator jgen, SerializerProvider provider)
|
833
|
-
throws IOException, JsonProcessingException
|
834
|
-
{
|
835
|
-
_serializer.serializeWithType(value, jgen, provider, _typeSerializer);
|
836
|
-
}
|
837
|
-
|
838
|
-
@Override
|
839
|
-
public void serializeWithType(Object value, JsonGenerator jgen, SerializerProvider provider,
|
840
|
-
TypeSerializer typeSer)
|
841
|
-
throws IOException, JsonProcessingException
|
842
|
-
{
|
843
|
-
/* Is this an erroneous call? For now, let's assume it is not, and
|
844
|
-
* that type serializer is just overridden if so
|
845
|
-
*/
|
846
|
-
_serializer.serializeWithType(value, jgen, provider, typeSer);
|
847
|
-
}
|
848
|
-
|
849
|
-
@Override
|
850
|
-
public Class<Object> handledType() { return Object.class; }
|
851
|
-
}
|
852
|
-
}
|