calabash-android 0.4.7.pre6 → 0.4.7.pre7
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 +7 -15
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/build.xml +2 -2
- data/test-server/instrumentation-backend/.classpath +0 -3
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java +1 -2
- 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/webview/QueryHelper.java +1 -2
- 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 +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryUtils.java +203 -222
- data/test-server/instrumentation-backend/src/sh/calaba/org/apache/http/entity/mime/version.properties +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variant.java +413 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variants.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/FormatSchema.java +29 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonEncoding.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonFactory.java +937 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerationException.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerator.java +1197 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonLocation.java +141 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonNode.java +879 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParseException.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParser.java +1434 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonProcessingException.java +80 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonStreamContext.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonToken.java +161 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/ObjectCodec.java +157 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/PrettyPrinter.java +166 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/SerializableString.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Version.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Versioned.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JacksonAnnotation.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnyGetter.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnySetter.java +24 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAutoDetect.java +148 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonBackReference.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonCreator.java +19 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonGetter.java +35 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnore.java +57 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreProperties.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreType.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonManagedReference.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonMethod.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonProperty.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonPropertyOrder.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonRawValue.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSetter.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSubTypes.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeInfo.java +236 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeName.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonUnwrapped.java +76 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonValue.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonWriteNullProperties.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/package-info.java +16 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatDetector.java +176 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatMatcher.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/InputAccessor.java +130 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/MatchStrength.java +64 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ByteSourceBootstrapper.java +518 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/DefaultPrettyPrinter.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Indenter.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonGeneratorBase.java +570 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonNumericParserBase.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserBase.java +1067 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserMinimalBase.java +539 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonReadContext.java +188 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonWriteContext.java +178 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParser.java +1815 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParserBase.java +228 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/StreamBasedParserBase.java +197 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8Generator.java +1757 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8StreamParser.java +2966 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/WriterBasedGenerator.java +1815 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/package-info.java +6 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/BaseReader.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/CharacterEscapes.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/IOContext.java +239 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/InputDecorator.java +67 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/JsonStringEncoder.java +408 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/MergedStream.java +145 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberInput.java +303 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberOutput.java +398 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/OutputDecorator.java +40 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SegmentedStringWriter.java +104 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SerializedString.java +114 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF32Reader.java +214 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF8Writer.java +387 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/package.html +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AbstractTypeResolver.java +63 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AnnotationIntrospector.java +1485 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanDescription.java +171 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanProperty.java +123 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanPropertyDefinition.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ClassIntrospector.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualDeserializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualKeyDeserializer.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationConfig.java +926 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationContext.java +262 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationProblemHandler.java +56 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerFactory.java +356 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerProvider.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Deserializers.java +339 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/HandlerInstantiator.java +115 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/InjectableValues.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonDeserializer.java +166 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonMappingException.java +335 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializable.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializableWithType.java +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializer.java +138 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializer.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializers.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MapperConfig.java +1154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingIterator.java +190 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingJsonFactory.java +81 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Module.java +255 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectMapper.java +2885 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectReader.java +958 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectWriter.java +554 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/PropertyNamingStrategy.java +258 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableDeserializer.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableSerializer.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/RuntimeJsonMappingException.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializationConfig.java +1041 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerFactory.java +198 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerProvider.java +552 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Serializers.java +137 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeDeserializer.java +118 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeSerializer.java +164 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonInject.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonStdImpl.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonCachable.java +32 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonDeserialize.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonFilter.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonRootName.java +29 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonSerialize.java +216 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeIdResolver.java +35 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeResolver.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonValueInstantiator.java +26 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonView.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/NoClass.java +19 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/AbstractDeserializer.java +102 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializer.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BasicDeserializerFactory.java +894 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializer.java +1537 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerBuilder.java +277 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerFactory.java +1474 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerModifier.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CollectionDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ContainerDeserializer.java +14 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CustomDeserializerFactory.java +227 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/DateDeserializer.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumDeserializer.java +15 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumResolver.java +17 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/FromStringDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/JsonNodeDeserializer.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/MapDeserializer.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableAnyProperty.java +177 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableBeanProperty.java +827 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializationContext.java +326 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializer.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializerProvider.java +494 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializers.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializer.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdScalarDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ThrowableDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/UntypedObjectDeserializer.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiator.java +280 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiators.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/BeanPropertyMap.java +257 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorCollector.java +141 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorProperty.java +152 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ExternalTypeHandler.java +173 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyBasedCreator.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValue.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValueBuffer.java +102 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/UnwrappedPropertyHandler.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ValueInjector.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/package-info.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicBooleanDeserializer.java +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicReferenceDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CalendarDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ClassDeserializer.java +49 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CollectionDeserializer.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ContainerDeserializerBase.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/DateDeserializer.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumDeserializer.java +139 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumMapDeserializer.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumSetDeserializer.java +89 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/FromStringDeserializer.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JavaTypeDeserializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JsonNodeDeserializer.java +314 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/MapDeserializer.java +412 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ObjectArrayDeserializer.java +201 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/PrimitiveArrayDeserializers.java +583 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdDeserializer.java +1136 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializer.java +340 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializers.java +108 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdScalarDeserializer.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdValueInstantiator.java +392 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringCollectionDeserializer.java +227 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringDeserializer.java +55 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ThrowableDeserializer.java +164 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TimestampDeserializer.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TokenBufferDeserializer.java +36 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/UntypedObjectDeserializer.java +248 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/package-info.java +15 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/exc/UnrecognizedPropertyException.java +75 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/DOMDeserializer.java +65 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/OptionalHandlerFactory.java +217 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/package-info.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/Annotated.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedClass.java +980 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedConstructor.java +143 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedField.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMember.java +56 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethod.java +188 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethodMap.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedParameter.java +191 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedWithParams.java +195 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotationMap.java +101 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicBeanDescription.java +615 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicClassIntrospector.java +364 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/JacksonAnnotationIntrospector.java +813 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MemberKey.java +83 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MethodFilter.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/NopAnnotationIntrospector.java +209 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertiesCollector.java +713 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertyBuilder.java +648 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/VisibilityChecker.java +424 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/package-info.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/NamedType.java +53 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/SubtypeResolver.java +39 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeIdResolver.java +74 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeResolverBuilder.java +151 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeDeserializer.java +126 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeSerializer.java +110 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeDeserializer.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeSerializer.java +129 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeDeserializer.java +191 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeSerializer.java +69 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeDeserializer.java +103 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeSerializer.java +121 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/ClassNameIdResolver.java +138 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/MinimalClassNameIdResolver.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdSubtypeResolver.java +151 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdTypeResolverBuilder.java +202 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeDeserializerBase.java +154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeIdResolverBase.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeNameIdResolver.java +154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeSerializerBase.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/package-info.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/package-info.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleAbstractTypeResolver.java +86 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleDeserializers.java +130 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleKeyDeserializers.java +59 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleModule.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleSerializers.java +206 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleValueInstantiators.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/package-info.java +16 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/package-info.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/AnyGetterWriter.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ArraySerializers.java +7 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BasicSerializerFactory.java +806 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyFilter.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyWriter.java +512 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializer.java +126 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerBuilder.java +140 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerFactory.java +780 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerModifier.java +95 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ContainerSerializers.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/CustomSerializerFactory.java +293 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/EnumSerializer.java +17 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilterProvider.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilteredBeanPropertyWriter.java +96 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/JdkSerializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/MapSerializer.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/PropertyBuilder.java +372 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ScalarSerializerBase.java +18 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/SerializerBase.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdKeySerializer.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializerProvider.java +852 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializers.java +372 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ToStringSerializer.java +14 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/FailingSerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/JsonSerializerMap.java +93 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/PropertySerializerMap.java +231 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/ReadOnlyClassToSerializerMap.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SerializerCache.java +304 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleBeanPropertyFilter.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java +114 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnknownSerializer.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanPropertyWriter.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanSerializer.java +76 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/AsArraySerializerBase.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/BeanSerializerBase.java +340 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CalendarSerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CollectionSerializer.java +113 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ContainerSerializerBase.java +51 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/DateSerializer.java +42 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumMapSerializer.java +218 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSerializer.java +84 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSetSerializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IndexedStringListSerializer.java +116 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/InetAddressSerializer.java +51 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IterableSerializer.java +63 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/JsonValueSerializer.java +233 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/MapSerializer.java +422 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NonTypedScalarSerializerBase.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NullSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ObjectArraySerializer.java +281 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/RawSerializer.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ScalarSerializerBase.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableSerializer.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableWithTypeSerializer.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializerBase.java +184 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StaticListSerializerBase.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdArraySerializers.java +476 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdContainerSerializers.java +249 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdJdkSerializers.java +195 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializers.java +95 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringCollectionSerializer.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringSerializer.java +36 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TimeZoneSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ToStringSerializer.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TokenBufferSerializer.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ArrayType.java +260 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ClassKey.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionLikeType.java +204 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionType.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/HierarchicType.java +88 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapLikeType.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapType.java +146 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/SimpleType.java +250 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBase.java +148 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBindings.java +351 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeFactory.java +1165 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeModifier.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeParser.java +134 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/package-info.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Annotations.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ArrayBuilders.java +293 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/BeanUtil.java +260 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ClassUtil.java +645 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Comparators.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumResolver.java +108 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumValues.java +82 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601DateFormat.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601Utils.java +230 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONPObject.java +105 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONWrappedObject.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LRUMap.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LinkedNode.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Named.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ObjectBuffer.java +257 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/PrimitiveArrayBuilder.java +180 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Provider.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/RootNameLookup.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/StdDateFormat.java +348 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/package-info.java +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ArrayNode.java +758 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BaseJsonNode.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BigIntegerNode.java +104 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BinaryNode.java +136 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BooleanNode.java +84 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ContainerNode.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DecimalNode.java +96 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DoubleNode.java +106 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/IntNode.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/JsonNodeFactory.java +222 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/LongNode.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/MissingNode.java +97 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NodeCursor.java +222 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NullNode.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NumericNode.java +72 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ObjectNode.java +696 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/POJONode.java +145 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TextNode.java +299 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TreeTraversingParser.java +383 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/package-info.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSchema.java +82 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSerializableSchema.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/SchemaAware.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/BytesToNameCanonicalizer.java +969 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/CharsToNameCanonicalizer.java +578 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name.java +50 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name1.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java +40 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name3.java +39 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/NameN.java +68 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/JavaType.java +503 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/TypeReference.java +60 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/BufferRecycler.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/ByteArrayBuilder.java +294 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/CharTypes.java +237 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/DefaultPrettyPrinter.java +282 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/InternCache.java +49 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonGeneratorDelegate.java +273 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserDelegate.java +251 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserSequence.java +150 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/MinimalPrettyPrinter.java +152 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TextBuffer.java +707 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TokenBuffer.java +1233 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/VersionUtil.java +79 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/package-info.java +4 -0
- metadata +409 -5
- 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
@@ -0,0 +1,23 @@
|
|
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
|
+
}
|
@@ -0,0 +1,10 @@
|
|
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
|
+
}
|
@@ -0,0 +1,852 @@
|
|
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
|
+
}
|