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,231 +0,0 @@
|
|
1
|
-
package sh.calaba.org.codehaus.jackson.map.ser.impl;
|
2
|
-
|
3
|
-
import sh.calaba.org.codehaus.jackson.map.BeanProperty;
|
4
|
-
import sh.calaba.org.codehaus.jackson.map.JsonMappingException;
|
5
|
-
import sh.calaba.org.codehaus.jackson.map.JsonSerializer;
|
6
|
-
import sh.calaba.org.codehaus.jackson.map.SerializerProvider;
|
7
|
-
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Helper container used for resolving serializers for dynamic (possibly but not
|
11
|
-
* necessarily polymorphic) properties: properties whose type is not forced
|
12
|
-
* to use dynamic (declared) type and that are not final.
|
13
|
-
* If so, serializer to use can only be established once actual value type is known.
|
14
|
-
* Since this happens a lot unless static typing is forced (or types are final)
|
15
|
-
* this implementation is optimized for efficiency.
|
16
|
-
* Instances are immutable; new instances are created with factory methods: this
|
17
|
-
* is important to ensure correct multi-threaded access.
|
18
|
-
*
|
19
|
-
* @since 1.7
|
20
|
-
*/
|
21
|
-
public abstract class PropertySerializerMap
|
22
|
-
{
|
23
|
-
/**
|
24
|
-
* Main lookup method. Takes a "raw" type since usage is always from
|
25
|
-
* place where parameterization is fixed such that there can not be
|
26
|
-
* type-parametric variations.
|
27
|
-
*/
|
28
|
-
public abstract JsonSerializer<Object> serializerFor(Class<?> type);
|
29
|
-
|
30
|
-
/**
|
31
|
-
* Method called if initial lookup fails; will both find serializer
|
32
|
-
* and construct new map instance if warranted, and return both
|
33
|
-
* @throws JsonMappingException
|
34
|
-
*/
|
35
|
-
public final SerializerAndMapResult findAndAddSerializer(Class<?> type,
|
36
|
-
SerializerProvider provider, BeanProperty property)
|
37
|
-
throws JsonMappingException
|
38
|
-
{
|
39
|
-
JsonSerializer<Object> serializer = provider.findValueSerializer(type, property);
|
40
|
-
return new SerializerAndMapResult(serializer, newWith(type, serializer));
|
41
|
-
}
|
42
|
-
|
43
|
-
public final SerializerAndMapResult findAndAddSerializer(JavaType type,
|
44
|
-
SerializerProvider provider, BeanProperty property)
|
45
|
-
throws JsonMappingException
|
46
|
-
{
|
47
|
-
JsonSerializer<Object> serializer = provider.findValueSerializer(type, property);
|
48
|
-
return new SerializerAndMapResult(serializer, newWith(type.getRawClass(), serializer));
|
49
|
-
}
|
50
|
-
|
51
|
-
public abstract PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer);
|
52
|
-
|
53
|
-
public static PropertySerializerMap emptyMap() {
|
54
|
-
return Empty.instance;
|
55
|
-
}
|
56
|
-
|
57
|
-
/*
|
58
|
-
/**********************************************************
|
59
|
-
/* Helper classes
|
60
|
-
/**********************************************************
|
61
|
-
*/
|
62
|
-
|
63
|
-
/**
|
64
|
-
* Value class used for returning tuple that has both serializer
|
65
|
-
* that was retrieved and new map instance
|
66
|
-
*/
|
67
|
-
public final static class SerializerAndMapResult
|
68
|
-
{
|
69
|
-
public final JsonSerializer<Object> serializer;
|
70
|
-
public final PropertySerializerMap map;
|
71
|
-
|
72
|
-
public SerializerAndMapResult(JsonSerializer<Object> serializer,
|
73
|
-
PropertySerializerMap map)
|
74
|
-
{
|
75
|
-
this.serializer = serializer;
|
76
|
-
this.map = map;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
/**
|
81
|
-
* Trivial container for bundling type + serializer entries.
|
82
|
-
*/
|
83
|
-
private final static class TypeAndSerializer
|
84
|
-
{
|
85
|
-
public final Class<?> type;
|
86
|
-
public final JsonSerializer<Object> serializer;
|
87
|
-
|
88
|
-
public TypeAndSerializer(Class<?> type, JsonSerializer<Object> serializer) {
|
89
|
-
this.type = type;
|
90
|
-
this.serializer = serializer;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
/*
|
95
|
-
/**********************************************************
|
96
|
-
/* Implementations
|
97
|
-
/**********************************************************
|
98
|
-
*/
|
99
|
-
|
100
|
-
/**
|
101
|
-
* Bogus instance that contains no serializers; used as the default
|
102
|
-
* map with new serializers.
|
103
|
-
*/
|
104
|
-
private final static class Empty extends PropertySerializerMap
|
105
|
-
{
|
106
|
-
protected final static Empty instance = new Empty();
|
107
|
-
|
108
|
-
@Override
|
109
|
-
public JsonSerializer<Object> serializerFor(Class<?> type) {
|
110
|
-
return null; // empty, nothing to find
|
111
|
-
}
|
112
|
-
|
113
|
-
@Override
|
114
|
-
public PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer) {
|
115
|
-
return new Single(type, serializer);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
/**
|
120
|
-
* Map that contains a single serializer; although seemingly silly
|
121
|
-
* this is probably the most commonly used variant because many
|
122
|
-
* theoretically dynamic or polymorphic types just have single
|
123
|
-
* actual type.
|
124
|
-
*/
|
125
|
-
private final static class Single extends PropertySerializerMap
|
126
|
-
{
|
127
|
-
private final Class<?> _type;
|
128
|
-
private final JsonSerializer<Object> _serializer;
|
129
|
-
|
130
|
-
public Single(Class<?> type, JsonSerializer<Object> serializer) {
|
131
|
-
_type = type;
|
132
|
-
_serializer = serializer;
|
133
|
-
}
|
134
|
-
|
135
|
-
@Override
|
136
|
-
public JsonSerializer<Object> serializerFor(Class<?> type)
|
137
|
-
{
|
138
|
-
if (type == _type) {
|
139
|
-
return _serializer;
|
140
|
-
}
|
141
|
-
return null;
|
142
|
-
}
|
143
|
-
|
144
|
-
@Override
|
145
|
-
public PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer) {
|
146
|
-
return new Double(_type, _serializer, type, serializer);
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
private final static class Double extends PropertySerializerMap
|
151
|
-
{
|
152
|
-
private final Class<?> _type1, _type2;
|
153
|
-
private final JsonSerializer<Object> _serializer1, _serializer2;
|
154
|
-
|
155
|
-
public Double(Class<?> type1, JsonSerializer<Object> serializer1,
|
156
|
-
Class<?> type2, JsonSerializer<Object> serializer2)
|
157
|
-
{
|
158
|
-
_type1 = type1;
|
159
|
-
_serializer1 = serializer1;
|
160
|
-
_type2 = type2;
|
161
|
-
_serializer2 = serializer2;
|
162
|
-
}
|
163
|
-
|
164
|
-
@Override
|
165
|
-
public JsonSerializer<Object> serializerFor(Class<?> type)
|
166
|
-
{
|
167
|
-
if (type == _type1) {
|
168
|
-
return _serializer1;
|
169
|
-
}
|
170
|
-
if (type == _type2) {
|
171
|
-
return _serializer2;
|
172
|
-
}
|
173
|
-
return null;
|
174
|
-
}
|
175
|
-
|
176
|
-
@Override
|
177
|
-
public PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer) {
|
178
|
-
// Ok: let's just create generic one
|
179
|
-
TypeAndSerializer[] ts = new TypeAndSerializer[2];
|
180
|
-
ts[0] = new TypeAndSerializer(_type1, _serializer1);
|
181
|
-
ts[1] = new TypeAndSerializer(_type2, _serializer2);
|
182
|
-
return new Multi(ts);
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
private final static class Multi extends PropertySerializerMap
|
187
|
-
{
|
188
|
-
/**
|
189
|
-
* Let's limit number of serializers we actually cache; linear
|
190
|
-
* lookup won't scale too well beyond smallish number, and if
|
191
|
-
* we really want to support larger collections should use
|
192
|
-
* a hash map. But it seems unlikely this is a common use
|
193
|
-
* case so for now let's just stop building after hard-coded
|
194
|
-
* limit. 8 sounds like a reasonable stab for now.
|
195
|
-
*/
|
196
|
-
private final static int MAX_ENTRIES = 8;
|
197
|
-
|
198
|
-
private final TypeAndSerializer[] _entries;
|
199
|
-
|
200
|
-
public Multi(TypeAndSerializer[] entries) {
|
201
|
-
_entries = entries;
|
202
|
-
}
|
203
|
-
|
204
|
-
@Override
|
205
|
-
public JsonSerializer<Object> serializerFor(Class<?> type)
|
206
|
-
{
|
207
|
-
for (int i = 0, len = _entries.length; i < len; ++i) {
|
208
|
-
TypeAndSerializer entry = _entries[i];
|
209
|
-
if (entry.type == type) {
|
210
|
-
return entry.serializer;
|
211
|
-
}
|
212
|
-
}
|
213
|
-
return null;
|
214
|
-
}
|
215
|
-
|
216
|
-
@Override
|
217
|
-
public PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer)
|
218
|
-
{
|
219
|
-
int len = _entries.length;
|
220
|
-
// Will only grow up to N entries
|
221
|
-
if (len == MAX_ENTRIES) {
|
222
|
-
return this;
|
223
|
-
}
|
224
|
-
// 1.6 has nice resize methods but we are still 1.5
|
225
|
-
TypeAndSerializer[] entries = new TypeAndSerializer[len+1];
|
226
|
-
System.arraycopy(_entries, 0, entries, 0, len);
|
227
|
-
entries[len] = new TypeAndSerializer(type, serializer);
|
228
|
-
return new Multi(entries);
|
229
|
-
}
|
230
|
-
}
|
231
|
-
}
|
@@ -1,73 +0,0 @@
|
|
1
|
-
package sh.calaba.org.codehaus.jackson.map.ser.impl;
|
2
|
-
|
3
|
-
import java.util.*;
|
4
|
-
|
5
|
-
import sh.calaba.org.codehaus.jackson.map.JsonSerializer;
|
6
|
-
import sh.calaba.org.codehaus.jackson.map.ser.impl.SerializerCache.TypeKey;
|
7
|
-
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
8
|
-
|
9
|
-
/**
|
10
|
-
* Optimized lookup table for accessing two types of serializers; typed
|
11
|
-
* and non-typed. Only accessed from a single thread, so no synchronization
|
12
|
-
* needed for accessors.
|
13
|
-
*
|
14
|
-
* @since 1.7
|
15
|
-
*/
|
16
|
-
public final class ReadOnlyClassToSerializerMap
|
17
|
-
{
|
18
|
-
/**
|
19
|
-
* Actual mappings from type key to serializers
|
20
|
-
*/
|
21
|
-
protected final JsonSerializerMap _map;
|
22
|
-
|
23
|
-
/**
|
24
|
-
* We'll reuse key class to avoid unnecessary instantiations; since
|
25
|
-
* this is not shared between threads, we can just reuse single
|
26
|
-
* instance.
|
27
|
-
*/
|
28
|
-
protected final TypeKey _cacheKey = new TypeKey(getClass(), false);
|
29
|
-
|
30
|
-
private ReadOnlyClassToSerializerMap(JsonSerializerMap map)
|
31
|
-
{
|
32
|
-
_map = map;
|
33
|
-
}
|
34
|
-
|
35
|
-
public ReadOnlyClassToSerializerMap instance()
|
36
|
-
{
|
37
|
-
return new ReadOnlyClassToSerializerMap(_map);
|
38
|
-
}
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Factory method for creating the "blueprint" lookup map. Such map
|
42
|
-
* can not be used as is but just shared: to get an actual usable
|
43
|
-
* instance, {@link #instance} has to be called first.
|
44
|
-
*/
|
45
|
-
public static ReadOnlyClassToSerializerMap from(HashMap<TypeKey, JsonSerializer<Object>> src)
|
46
|
-
{
|
47
|
-
return new ReadOnlyClassToSerializerMap(new JsonSerializerMap(src));
|
48
|
-
}
|
49
|
-
|
50
|
-
public JsonSerializer<Object> typedValueSerializer(JavaType type)
|
51
|
-
{
|
52
|
-
_cacheKey.resetTyped(type);
|
53
|
-
return _map.find(_cacheKey);
|
54
|
-
}
|
55
|
-
|
56
|
-
public JsonSerializer<Object> typedValueSerializer(Class<?> cls)
|
57
|
-
{
|
58
|
-
_cacheKey.resetTyped(cls);
|
59
|
-
return _map.find(_cacheKey);
|
60
|
-
}
|
61
|
-
|
62
|
-
public JsonSerializer<Object> untypedValueSerializer(Class<?> cls)
|
63
|
-
{
|
64
|
-
_cacheKey.resetUntyped(cls);
|
65
|
-
return _map.find(_cacheKey);
|
66
|
-
}
|
67
|
-
|
68
|
-
public JsonSerializer<Object> untypedValueSerializer(JavaType type)
|
69
|
-
{
|
70
|
-
_cacheKey.resetUntyped(type);
|
71
|
-
return _map.find(_cacheKey);
|
72
|
-
}
|
73
|
-
}
|
@@ -1,304 +0,0 @@
|
|
1
|
-
package sh.calaba.org.codehaus.jackson.map.ser.impl;
|
2
|
-
|
3
|
-
import java.util.*;
|
4
|
-
|
5
|
-
import sh.calaba.org.codehaus.jackson.map.JsonMappingException;
|
6
|
-
import sh.calaba.org.codehaus.jackson.map.JsonSerializer;
|
7
|
-
import sh.calaba.org.codehaus.jackson.map.ResolvableSerializer;
|
8
|
-
import sh.calaba.org.codehaus.jackson.map.SerializerProvider;
|
9
|
-
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
10
|
-
|
11
|
-
/**
|
12
|
-
* Simple cache object that allows for doing 2-level lookups: first level is
|
13
|
-
* by "local" read-only lookup Map (used without locking)
|
14
|
-
* and second backup level is by a shared modifiable HashMap.
|
15
|
-
* The idea is that after a while, most serializers are found from the
|
16
|
-
* local Map (to optimize performance, reduce lock contention),
|
17
|
-
* but that during buildup we can use a shared map to reduce both
|
18
|
-
* number of distinct read-only maps constructed, and number of
|
19
|
-
* serializers constructed.
|
20
|
-
*<p>
|
21
|
-
* Since version 1.5 cache will actually contain three kinds of entries,
|
22
|
-
* based on combination of class pair key. First class in key is for the
|
23
|
-
* type to serialize, and second one is type used for determining how
|
24
|
-
* to resolve value type. One (but not both) of entries can be null.
|
25
|
-
*/
|
26
|
-
public final class SerializerCache
|
27
|
-
{
|
28
|
-
/**
|
29
|
-
* Shared, modifiable map; all access needs to be through synchronized blocks.
|
30
|
-
*<p>
|
31
|
-
* NOTE: keys are of various types (see below for key types), in addition to
|
32
|
-
* basic {@link JavaType} used for "untyped" serializers.
|
33
|
-
*/
|
34
|
-
private HashMap<TypeKey, JsonSerializer<Object>> _sharedMap = new HashMap<TypeKey, JsonSerializer<Object>>(64);
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Most recent read-only instance, created from _sharedMap, if any.
|
38
|
-
*/
|
39
|
-
private ReadOnlyClassToSerializerMap _readOnlyMap = null;
|
40
|
-
|
41
|
-
public SerializerCache() {
|
42
|
-
}
|
43
|
-
|
44
|
-
/**
|
45
|
-
* Method that can be called to get a read-only instance populated from the
|
46
|
-
* most recent version of the shared lookup Map.
|
47
|
-
*/
|
48
|
-
public ReadOnlyClassToSerializerMap getReadOnlyLookupMap()
|
49
|
-
{
|
50
|
-
ReadOnlyClassToSerializerMap m;
|
51
|
-
synchronized (this) {
|
52
|
-
m = _readOnlyMap;
|
53
|
-
if (m == null) {
|
54
|
-
_readOnlyMap = m = ReadOnlyClassToSerializerMap.from(_sharedMap);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
return m.instance();
|
58
|
-
}
|
59
|
-
|
60
|
-
/*
|
61
|
-
/**********************************************************
|
62
|
-
/* Lookup methods for accessing shared (slow) cache
|
63
|
-
/**********************************************************
|
64
|
-
*/
|
65
|
-
|
66
|
-
/**
|
67
|
-
* @since 1.4
|
68
|
-
*/
|
69
|
-
public synchronized int size() {
|
70
|
-
return _sharedMap.size();
|
71
|
-
}
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Method that checks if the shared (and hence, synchronized) lookup Map might have
|
75
|
-
* untyped serializer for given type.
|
76
|
-
*/
|
77
|
-
public JsonSerializer<Object> untypedValueSerializer(Class<?> type)
|
78
|
-
{
|
79
|
-
synchronized (this) {
|
80
|
-
return _sharedMap.get(new TypeKey(type, false));
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
/**
|
85
|
-
* @since 1.5
|
86
|
-
*/
|
87
|
-
public JsonSerializer<Object> untypedValueSerializer(JavaType type)
|
88
|
-
{
|
89
|
-
synchronized (this) {
|
90
|
-
return _sharedMap.get(new TypeKey(type, false));
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
public JsonSerializer<Object> typedValueSerializer(JavaType type)
|
95
|
-
{
|
96
|
-
synchronized (this) {
|
97
|
-
return _sharedMap.get(new TypeKey(type, true));
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
public JsonSerializer<Object> typedValueSerializer(Class<?> cls)
|
102
|
-
{
|
103
|
-
synchronized (this) {
|
104
|
-
return _sharedMap.get(new TypeKey(cls, true));
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
/*
|
109
|
-
/**********************************************************
|
110
|
-
/* Methods for adding shared serializer instances
|
111
|
-
/**********************************************************
|
112
|
-
*/
|
113
|
-
|
114
|
-
/**
|
115
|
-
* Method called if none of lookups succeeded, and caller had to construct
|
116
|
-
* a serializer. If so, we will update the shared lookup map so that it
|
117
|
-
* can be resolved via it next time.
|
118
|
-
*/
|
119
|
-
public void addTypedSerializer(JavaType type, JsonSerializer<Object> ser)
|
120
|
-
{
|
121
|
-
synchronized (this) {
|
122
|
-
if (_sharedMap.put(new TypeKey(type, true), ser) == null) {
|
123
|
-
// let's invalidate the read-only copy, too, to get it updated
|
124
|
-
_readOnlyMap = null;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
}
|
128
|
-
|
129
|
-
public void addTypedSerializer(Class<?> cls, JsonSerializer<Object> ser)
|
130
|
-
{
|
131
|
-
synchronized (this) {
|
132
|
-
if (_sharedMap.put(new TypeKey(cls, true), ser) == null) {
|
133
|
-
// let's invalidate the read-only copy, too, to get it updated
|
134
|
-
_readOnlyMap = null;
|
135
|
-
}
|
136
|
-
}
|
137
|
-
}
|
138
|
-
|
139
|
-
/**
|
140
|
-
* @since 1.8
|
141
|
-
*/
|
142
|
-
public void addAndResolveNonTypedSerializer(Class<?> type, JsonSerializer<Object> ser,
|
143
|
-
SerializerProvider provider)
|
144
|
-
throws JsonMappingException
|
145
|
-
{
|
146
|
-
synchronized (this) {
|
147
|
-
if (_sharedMap.put(new TypeKey(type, false), ser) == null) {
|
148
|
-
// let's invalidate the read-only copy, too, to get it updated
|
149
|
-
_readOnlyMap = null;
|
150
|
-
}
|
151
|
-
/* Finally: some serializers want to do post-processing, after
|
152
|
-
* getting registered (to handle cyclic deps).
|
153
|
-
*/
|
154
|
-
/* 14-May-2011, tatu: As per [JACKSON-570], resolving needs to be done
|
155
|
-
* in synchronized manner; this because while we do need to register
|
156
|
-
* instance first, we also must keep lock until resolution is complete
|
157
|
-
*/
|
158
|
-
if (ser instanceof ResolvableSerializer) {
|
159
|
-
((ResolvableSerializer) ser).resolve(provider);
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
/**
|
165
|
-
* @since 1.8
|
166
|
-
*/
|
167
|
-
public void addAndResolveNonTypedSerializer(JavaType type, JsonSerializer<Object> ser,
|
168
|
-
SerializerProvider provider)
|
169
|
-
throws JsonMappingException
|
170
|
-
{
|
171
|
-
synchronized (this) {
|
172
|
-
if (_sharedMap.put(new TypeKey(type, false), ser) == null) {
|
173
|
-
// let's invalidate the read-only copy, too, to get it updated
|
174
|
-
_readOnlyMap = null;
|
175
|
-
}
|
176
|
-
/* Finally: some serializers want to do post-processing, after
|
177
|
-
* getting registered (to handle cyclic deps).
|
178
|
-
*/
|
179
|
-
/* 14-May-2011, tatu: As per [JACKSON-570], resolving needs to be done
|
180
|
-
* in synchronized manner; this because while we do need to register
|
181
|
-
* instance first, we also must keep lock until resolution is complete
|
182
|
-
*/
|
183
|
-
if (ser instanceof ResolvableSerializer) {
|
184
|
-
((ResolvableSerializer) ser).resolve(provider);
|
185
|
-
}
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
/**
|
190
|
-
* Method called by StdSerializerProvider#flushCachedSerializers() to
|
191
|
-
* clear all cached serializers
|
192
|
-
*/
|
193
|
-
public synchronized void flush() {
|
194
|
-
_sharedMap.clear();
|
195
|
-
}
|
196
|
-
|
197
|
-
/*
|
198
|
-
/**************************************************************
|
199
|
-
/* Helper class(es)
|
200
|
-
/**************************************************************
|
201
|
-
*/
|
202
|
-
|
203
|
-
/**
|
204
|
-
* Key that offers two "modes"; one with raw class, as used for
|
205
|
-
* cases were raw class type is available (for example, when using
|
206
|
-
* runtime type); and one with full generics-including.
|
207
|
-
*/
|
208
|
-
public final static class TypeKey
|
209
|
-
{
|
210
|
-
protected int _hashCode;
|
211
|
-
|
212
|
-
protected Class<?> _class;
|
213
|
-
|
214
|
-
protected JavaType _type;
|
215
|
-
|
216
|
-
/**
|
217
|
-
* Indicator of whether serializer stored has a type serializer
|
218
|
-
* wrapper around it or not; if not, it is "untyped" serializer;
|
219
|
-
* if it has, it is "typed"
|
220
|
-
*/
|
221
|
-
protected boolean _isTyped;
|
222
|
-
|
223
|
-
public TypeKey(Class<?> key, boolean typed) {
|
224
|
-
_class = key;
|
225
|
-
_type = null;
|
226
|
-
_isTyped = typed;
|
227
|
-
_hashCode = hash(key, typed);
|
228
|
-
}
|
229
|
-
|
230
|
-
public TypeKey(JavaType key, boolean typed) {
|
231
|
-
_type = key;
|
232
|
-
_class = null;
|
233
|
-
_isTyped = typed;
|
234
|
-
_hashCode = hash(key, typed);
|
235
|
-
}
|
236
|
-
|
237
|
-
private final static int hash(Class<?> cls, boolean typed) {
|
238
|
-
int hash = cls.getName().hashCode();
|
239
|
-
if (typed) {
|
240
|
-
++hash;
|
241
|
-
}
|
242
|
-
return hash;
|
243
|
-
}
|
244
|
-
|
245
|
-
private final static int hash(JavaType type, boolean typed) {
|
246
|
-
int hash = type.hashCode() - 1;
|
247
|
-
if (typed) {
|
248
|
-
--hash;
|
249
|
-
}
|
250
|
-
return hash;
|
251
|
-
}
|
252
|
-
|
253
|
-
public void resetTyped(Class<?> cls) {
|
254
|
-
_type = null;
|
255
|
-
_class = cls;
|
256
|
-
_isTyped = true;
|
257
|
-
_hashCode = hash(cls, true);
|
258
|
-
}
|
259
|
-
|
260
|
-
public void resetUntyped(Class<?> cls) {
|
261
|
-
_type = null;
|
262
|
-
_class = cls;
|
263
|
-
_isTyped = false;
|
264
|
-
_hashCode = hash(cls, false);
|
265
|
-
}
|
266
|
-
|
267
|
-
public void resetTyped(JavaType type) {
|
268
|
-
_type = type;
|
269
|
-
_class = null;
|
270
|
-
_isTyped = true;
|
271
|
-
_hashCode = hash(type, true);
|
272
|
-
}
|
273
|
-
|
274
|
-
public void resetUntyped(JavaType type) {
|
275
|
-
_type = type;
|
276
|
-
_class = null;
|
277
|
-
_isTyped = false;
|
278
|
-
_hashCode = hash(type, false);
|
279
|
-
}
|
280
|
-
|
281
|
-
@Override public final int hashCode() { return _hashCode; }
|
282
|
-
|
283
|
-
@Override public final String toString() {
|
284
|
-
if (_class != null) {
|
285
|
-
return "{class: "+_class.getName()+", typed? "+_isTyped+"}";
|
286
|
-
}
|
287
|
-
return "{type: "+_type+", typed? "+_isTyped+"}";
|
288
|
-
}
|
289
|
-
|
290
|
-
// note: we assume key is never used for anything other than as map key, so:
|
291
|
-
@Override public final boolean equals(Object o)
|
292
|
-
{
|
293
|
-
if (o == this) return true;
|
294
|
-
TypeKey other = (TypeKey) o;
|
295
|
-
if (other._isTyped == _isTyped) {
|
296
|
-
if (_class != null) {
|
297
|
-
return other._class == _class;
|
298
|
-
}
|
299
|
-
return _type.equals(other._type);
|
300
|
-
}
|
301
|
-
return false;
|
302
|
-
}
|
303
|
-
}
|
304
|
-
}
|