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,152 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.impl;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.lang.annotation.Annotation;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.JsonDeserializer;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.TypeDeserializer;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.deser.SettableBeanProperty;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.introspect.AnnotatedMember;
|
13
|
+
import sh.calaba.org.codehaus.jackson.map.introspect.AnnotatedParameter;
|
14
|
+
import sh.calaba.org.codehaus.jackson.map.util.Annotations;
|
15
|
+
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* This concrete sub-class implements property that is passed
|
19
|
+
* via Creator (constructor or static factory method).
|
20
|
+
* It is not a full-featured implementation in that its set method
|
21
|
+
* should never be called -- instead, value must separately passed.
|
22
|
+
*<p>
|
23
|
+
* Note on injectable values (1.9): unlike with other mutators, where
|
24
|
+
* deserializer and injecting are separate, here we deal the two as related
|
25
|
+
* things. This is necessary to add proper priority, as well as to simplify
|
26
|
+
* coordination.
|
27
|
+
*<p>
|
28
|
+
* Note that this class was moved in Jackson 1.9
|
29
|
+
* from being a static sub-class of "sh.calaba.org.codehaus.jackson.map.deser.SettableBeanProperty"
|
30
|
+
* into separate class, to make it easier to use it for custom creators.
|
31
|
+
*/
|
32
|
+
public class CreatorProperty
|
33
|
+
extends SettableBeanProperty
|
34
|
+
{
|
35
|
+
/**
|
36
|
+
* Placeholder that represents constructor parameter, when it is created
|
37
|
+
* from actual constructor.
|
38
|
+
* May be null when a synthetic instance is created.
|
39
|
+
*/
|
40
|
+
protected final AnnotatedParameter _annotated;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Id of value to inject, if value injection should be used for this parameter
|
44
|
+
* (in addition to, or instead of, regular deserialization).
|
45
|
+
*
|
46
|
+
* @since 1.9
|
47
|
+
*/
|
48
|
+
protected final Object _injectableValueId;
|
49
|
+
|
50
|
+
/**
|
51
|
+
* @param name Name of the logical property
|
52
|
+
* @param type Type of the property, used to find deserializer
|
53
|
+
* @param typeDeser Type deserializer to use for handling polymorphic type
|
54
|
+
* information, if one is needed
|
55
|
+
* @param contextAnnotations Contextual annotations (usually by class that
|
56
|
+
* declares creator [constructor, factory method] that includes
|
57
|
+
* this property)
|
58
|
+
* @param param Representation of property, constructor or factory
|
59
|
+
* method parameter; used for accessing annotations of the property
|
60
|
+
*/
|
61
|
+
public CreatorProperty(String name, JavaType type, TypeDeserializer typeDeser,
|
62
|
+
Annotations contextAnnotations, AnnotatedParameter param,
|
63
|
+
int index, Object injectableValueId)
|
64
|
+
{
|
65
|
+
super(name, type, typeDeser, contextAnnotations);
|
66
|
+
_annotated = param;
|
67
|
+
_propertyIndex = index;
|
68
|
+
_injectableValueId = injectableValueId;
|
69
|
+
}
|
70
|
+
|
71
|
+
protected CreatorProperty(CreatorProperty src, JsonDeserializer<Object> deser) {
|
72
|
+
super(src, deser);
|
73
|
+
_annotated = src._annotated;
|
74
|
+
_injectableValueId = src._injectableValueId;
|
75
|
+
}
|
76
|
+
|
77
|
+
@Override
|
78
|
+
public CreatorProperty withValueDeserializer(JsonDeserializer<Object> deser) {
|
79
|
+
return new CreatorProperty(this, deser);
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Method that can be called to locate value to be injected for this
|
84
|
+
* property, if it is configured for this.
|
85
|
+
*
|
86
|
+
* @since 1.9
|
87
|
+
*/
|
88
|
+
public Object findInjectableValue(DeserializationContext context, Object beanInstance)
|
89
|
+
{
|
90
|
+
if (_injectableValueId == null) {
|
91
|
+
throw new IllegalStateException("Property '"+getName()
|
92
|
+
+"' (type "+getClass().getName()+") has no injectable value id configured");
|
93
|
+
}
|
94
|
+
return context.findInjectableValue(_injectableValueId, this, beanInstance);
|
95
|
+
}
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Method to find value to inject, and inject it to this property.
|
99
|
+
*
|
100
|
+
* @since 1.9
|
101
|
+
*/
|
102
|
+
public void inject(DeserializationContext context, Object beanInstance)
|
103
|
+
throws IOException
|
104
|
+
{
|
105
|
+
set(beanInstance, findInjectableValue(context, beanInstance));
|
106
|
+
}
|
107
|
+
|
108
|
+
/*
|
109
|
+
/**********************************************************
|
110
|
+
/* BeanProperty impl
|
111
|
+
/**********************************************************
|
112
|
+
*/
|
113
|
+
|
114
|
+
@Override
|
115
|
+
public <A extends Annotation> A getAnnotation(Class<A> acls) {
|
116
|
+
if (_annotated == null) {
|
117
|
+
return null;
|
118
|
+
}
|
119
|
+
return _annotated.getAnnotation(acls);
|
120
|
+
}
|
121
|
+
|
122
|
+
@Override public AnnotatedMember getMember() { return _annotated; }
|
123
|
+
|
124
|
+
/*
|
125
|
+
/**********************************************************
|
126
|
+
/* Overridden methods
|
127
|
+
/**********************************************************
|
128
|
+
*/
|
129
|
+
|
130
|
+
@Override
|
131
|
+
public void deserializeAndSet(JsonParser jp, DeserializationContext ctxt,
|
132
|
+
Object instance)
|
133
|
+
throws IOException, JsonProcessingException
|
134
|
+
{
|
135
|
+
set(instance, deserialize(jp, ctxt));
|
136
|
+
}
|
137
|
+
|
138
|
+
@Override
|
139
|
+
public void set(Object instance, Object value)
|
140
|
+
throws IOException
|
141
|
+
{
|
142
|
+
/* Hmmmh. Should we return quietly (NOP), or error?
|
143
|
+
* For now, let's just bail out without fuss.
|
144
|
+
*/
|
145
|
+
//throw new IllegalStateException("Method should never be called on a "+getClass().getName());
|
146
|
+
}
|
147
|
+
|
148
|
+
@Override
|
149
|
+
public Object getInjectableValueId() {
|
150
|
+
return _injectableValueId;
|
151
|
+
}
|
152
|
+
}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.impl;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.util.*;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.deser.SettableBeanProperty;
|
10
|
+
import sh.calaba.org.codehaus.jackson.util.TokenBuffer;
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Helper class that is used to flatten JSON structure when using
|
14
|
+
* "external type id" (see {@link sh.calaba.org.codehaus.jackson.annotate.JsonTypeInfo.As#EXTERNAL_PROPERTY}).
|
15
|
+
* This is needed to store temporary state and buffer tokens, as the structure is
|
16
|
+
* rearranged a bit so that actual type deserializer can resolve type and
|
17
|
+
* finalize deserialization.
|
18
|
+
*
|
19
|
+
* @since 1.9
|
20
|
+
*/
|
21
|
+
public class ExternalTypeHandler
|
22
|
+
{
|
23
|
+
private final ExtTypedProperty[] _properties;
|
24
|
+
private final HashMap<String, Integer> _nameToPropertyIndex;
|
25
|
+
|
26
|
+
private final String[] _typeIds;
|
27
|
+
private final TokenBuffer[] _tokens;
|
28
|
+
|
29
|
+
protected ExternalTypeHandler(ExtTypedProperty[] properties,
|
30
|
+
HashMap<String, Integer> nameToPropertyIndex,
|
31
|
+
String[] typeIds, TokenBuffer[] tokens)
|
32
|
+
{
|
33
|
+
_properties = properties;
|
34
|
+
_nameToPropertyIndex = nameToPropertyIndex;
|
35
|
+
_typeIds = typeIds;
|
36
|
+
_tokens = tokens;
|
37
|
+
}
|
38
|
+
|
39
|
+
protected ExternalTypeHandler(ExternalTypeHandler h)
|
40
|
+
{
|
41
|
+
_properties = h._properties;
|
42
|
+
_nameToPropertyIndex = h._nameToPropertyIndex;
|
43
|
+
int len = _properties.length;
|
44
|
+
_typeIds = new String[len];
|
45
|
+
_tokens = new TokenBuffer[len];
|
46
|
+
}
|
47
|
+
|
48
|
+
public ExternalTypeHandler start() {
|
49
|
+
return new ExternalTypeHandler(this);
|
50
|
+
}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Method called to ask handler to handle
|
54
|
+
*/
|
55
|
+
public boolean handleToken(JsonParser jp, DeserializationContext ctxt,
|
56
|
+
String propName, Object bean)
|
57
|
+
throws IOException, JsonProcessingException
|
58
|
+
{
|
59
|
+
Integer I = _nameToPropertyIndex.get(propName);
|
60
|
+
if (I == null) {
|
61
|
+
return false;
|
62
|
+
}
|
63
|
+
int index = I.intValue();
|
64
|
+
ExtTypedProperty prop = _properties[index];
|
65
|
+
boolean canDeserialize;
|
66
|
+
if (prop.hasTypePropertyName(propName)) {
|
67
|
+
_typeIds[index] = jp.getText();
|
68
|
+
jp.skipChildren();
|
69
|
+
canDeserialize = (bean != null) && (_tokens[index] != null);
|
70
|
+
} else {
|
71
|
+
TokenBuffer tokens = new TokenBuffer(jp.getCodec());
|
72
|
+
tokens.copyCurrentStructure(jp);
|
73
|
+
_tokens[index] = tokens;
|
74
|
+
canDeserialize = (bean != null) && (_typeIds[index] != null);
|
75
|
+
}
|
76
|
+
/* Minor optimization: let's deserialize properties as soon as
|
77
|
+
* we have all pertinent information:
|
78
|
+
*/
|
79
|
+
if (canDeserialize) {
|
80
|
+
_deserialize(jp, ctxt, bean, index);
|
81
|
+
// clear stored data, to avoid deserializing+setting twice:
|
82
|
+
_typeIds[index] = null;
|
83
|
+
_tokens[index] = null;
|
84
|
+
}
|
85
|
+
return true;
|
86
|
+
}
|
87
|
+
|
88
|
+
public Object complete(JsonParser jp, DeserializationContext ctxt, Object bean)
|
89
|
+
throws IOException, JsonProcessingException
|
90
|
+
{
|
91
|
+
for (int i = 0, len = _properties.length; i < len; ++i) {
|
92
|
+
if (_typeIds[i] == null) {
|
93
|
+
// let's allow missing both type and property (may already have been set, too)
|
94
|
+
if (_tokens[i] == null) {
|
95
|
+
continue;
|
96
|
+
}
|
97
|
+
// but not just one
|
98
|
+
throw ctxt.mappingException("Missing external type id property '"+_properties[i].getTypePropertyName());
|
99
|
+
} else if (_tokens[i] == null) {
|
100
|
+
SettableBeanProperty prop = _properties[i].getProperty();
|
101
|
+
throw ctxt.mappingException("Missing property '"+prop.getName()+"' for external type id '"+_properties[i].getTypePropertyName());
|
102
|
+
}
|
103
|
+
_deserialize(jp, ctxt, bean, i);
|
104
|
+
}
|
105
|
+
return bean;
|
106
|
+
}
|
107
|
+
|
108
|
+
protected final void _deserialize(JsonParser jp, DeserializationContext ctxt, Object bean, int index)
|
109
|
+
throws IOException, JsonProcessingException
|
110
|
+
{
|
111
|
+
/* Ok: time to mix type id, value; and we will actually use "wrapper-array"
|
112
|
+
* style to ensure we can handle all kinds of JSON constructs.
|
113
|
+
*/
|
114
|
+
TokenBuffer merged = new TokenBuffer(jp.getCodec());
|
115
|
+
merged.writeStartArray();
|
116
|
+
merged.writeString(_typeIds[index]);
|
117
|
+
JsonParser p2 = _tokens[index].asParser(jp);
|
118
|
+
p2.nextToken();
|
119
|
+
merged.copyCurrentStructure(p2);
|
120
|
+
merged.writeEndArray();
|
121
|
+
// needs to point to START_OBJECT (or whatever first token is)
|
122
|
+
p2 = merged.asParser(jp);
|
123
|
+
p2.nextToken();
|
124
|
+
_properties[index].getProperty().deserializeAndSet(p2, ctxt, bean);
|
125
|
+
}
|
126
|
+
|
127
|
+
/*
|
128
|
+
/**********************************************************
|
129
|
+
/* Helper classes
|
130
|
+
/**********************************************************
|
131
|
+
*/
|
132
|
+
|
133
|
+
public static class Builder
|
134
|
+
{
|
135
|
+
private final ArrayList<ExtTypedProperty> _properties = new ArrayList<ExtTypedProperty>();
|
136
|
+
private final HashMap<String, Integer> _nameToPropertyIndex = new HashMap<String, Integer>();
|
137
|
+
|
138
|
+
public void addExternal(SettableBeanProperty property, String extPropName)
|
139
|
+
{
|
140
|
+
Integer index = _properties.size();
|
141
|
+
_properties.add(new ExtTypedProperty(property, extPropName));
|
142
|
+
_nameToPropertyIndex.put(property.getName(), index);
|
143
|
+
_nameToPropertyIndex.put(extPropName, index);
|
144
|
+
}
|
145
|
+
|
146
|
+
public ExternalTypeHandler build() {
|
147
|
+
return new ExternalTypeHandler(_properties.toArray(new ExtTypedProperty[_properties.size()]),
|
148
|
+
_nameToPropertyIndex, null, null);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
private final static class ExtTypedProperty
|
153
|
+
{
|
154
|
+
private final SettableBeanProperty _property;
|
155
|
+
private final String _typePropertyName;
|
156
|
+
|
157
|
+
public ExtTypedProperty(SettableBeanProperty property, String typePropertyName)
|
158
|
+
{
|
159
|
+
_property = property;
|
160
|
+
_typePropertyName = typePropertyName;
|
161
|
+
}
|
162
|
+
|
163
|
+
public boolean hasTypePropertyName(String n) {
|
164
|
+
return n.equals(_typePropertyName);
|
165
|
+
}
|
166
|
+
|
167
|
+
public String getTypePropertyName() { return _typePropertyName; }
|
168
|
+
|
169
|
+
public SettableBeanProperty getProperty() {
|
170
|
+
return _property;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.impl;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.util.Collection;
|
5
|
+
import java.util.HashMap;
|
6
|
+
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.JsonDeserializer;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.deser.SettableBeanProperty;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.deser.ValueInstantiator;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.util.ClassUtil;
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Object that is used to collect arguments for non-default creator
|
16
|
+
* (non-default-constructor, or argument-taking factory method)
|
17
|
+
* before creator can be called.
|
18
|
+
* Since ordering of JSON properties is not guaranteed, this may
|
19
|
+
* require buffering of values other than ones being passed to
|
20
|
+
* creator.
|
21
|
+
*/
|
22
|
+
public final class PropertyBasedCreator
|
23
|
+
{
|
24
|
+
protected final ValueInstantiator _valueInstantiator;
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Map that contains property objects for either constructor or factory
|
28
|
+
* method (whichever one is null: one property for each
|
29
|
+
* parameter for that one), keyed by logical property name
|
30
|
+
*/
|
31
|
+
protected final HashMap<String, SettableBeanProperty> _properties;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* If some property values must always have a non-null value (like
|
35
|
+
* primitive types do), this array contains such default values.
|
36
|
+
*/
|
37
|
+
protected Object[] _defaultValues;
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Array that contains properties that expect value to inject, if any;
|
41
|
+
* null if no injectable values are expected.
|
42
|
+
*
|
43
|
+
* @since 1.9
|
44
|
+
*/
|
45
|
+
protected final SettableBeanProperty[] _propertiesWithInjectables;
|
46
|
+
|
47
|
+
public PropertyBasedCreator(ValueInstantiator valueInstantiator)
|
48
|
+
{
|
49
|
+
_valueInstantiator = valueInstantiator;
|
50
|
+
_properties = new HashMap<String, SettableBeanProperty>();
|
51
|
+
// [JACKSON-372]: primitive types need extra care
|
52
|
+
Object[] defValues = null;
|
53
|
+
SettableBeanProperty[] creatorProps = valueInstantiator.getFromObjectArguments();
|
54
|
+
SettableBeanProperty[] propertiesWithInjectables = null;
|
55
|
+
for (int i = 0, len = creatorProps.length; i < len; ++i) {
|
56
|
+
SettableBeanProperty prop = creatorProps[i];
|
57
|
+
_properties.put(prop.getName(), prop);
|
58
|
+
if (prop.getType().isPrimitive()) {
|
59
|
+
if (defValues == null) {
|
60
|
+
defValues = new Object[len];
|
61
|
+
}
|
62
|
+
defValues[i] = ClassUtil.defaultValue(prop.getType().getRawClass());
|
63
|
+
}
|
64
|
+
Object injectableValueId = prop.getInjectableValueId();
|
65
|
+
if (injectableValueId != null) {
|
66
|
+
if (propertiesWithInjectables == null) {
|
67
|
+
propertiesWithInjectables = new SettableBeanProperty[len];
|
68
|
+
}
|
69
|
+
propertiesWithInjectables[i] = prop;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
_defaultValues = defValues;
|
73
|
+
_propertiesWithInjectables = propertiesWithInjectables;
|
74
|
+
}
|
75
|
+
|
76
|
+
public Collection<SettableBeanProperty> getCreatorProperties() {
|
77
|
+
return _properties.values();
|
78
|
+
}
|
79
|
+
|
80
|
+
public SettableBeanProperty findCreatorProperty(String name) {
|
81
|
+
return _properties.get(name);
|
82
|
+
}
|
83
|
+
|
84
|
+
public void assignDeserializer(SettableBeanProperty prop, JsonDeserializer<Object> deser) {
|
85
|
+
prop = prop.withValueDeserializer(deser);
|
86
|
+
_properties.put(prop.getName(), prop);
|
87
|
+
Object nullValue = deser.getNullValue();
|
88
|
+
if (nullValue != null) {
|
89
|
+
if (_defaultValues == null) {
|
90
|
+
_defaultValues = new Object[_properties.size()];
|
91
|
+
}
|
92
|
+
_defaultValues[prop.getPropertyIndex()] = nullValue;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Method called when starting to build a bean instance.
|
98
|
+
*/
|
99
|
+
public PropertyValueBuffer startBuilding(JsonParser jp, DeserializationContext ctxt)
|
100
|
+
{
|
101
|
+
PropertyValueBuffer buffer = new PropertyValueBuffer(jp, ctxt, _properties.size());
|
102
|
+
if (_propertiesWithInjectables != null) {
|
103
|
+
buffer.inject(_propertiesWithInjectables);
|
104
|
+
}
|
105
|
+
return buffer;
|
106
|
+
}
|
107
|
+
|
108
|
+
public Object build(PropertyValueBuffer buffer) throws IOException
|
109
|
+
{
|
110
|
+
Object bean = _valueInstantiator.createFromObjectWith(buffer.getParameters(_defaultValues));
|
111
|
+
// Anything buffered?
|
112
|
+
for (PropertyValue pv = buffer.buffered(); pv != null; pv = pv.next) {
|
113
|
+
pv.assign(bean);
|
114
|
+
}
|
115
|
+
return bean;
|
116
|
+
}
|
117
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.impl;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
|
5
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
6
|
+
import sh.calaba.org.codehaus.jackson.map.deser.SettableAnyProperty;
|
7
|
+
import sh.calaba.org.codehaus.jackson.map.deser.SettableBeanProperty;
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Base class for property values that need to be buffered during
|
11
|
+
* deserialization.
|
12
|
+
*/
|
13
|
+
public abstract class PropertyValue
|
14
|
+
{
|
15
|
+
public final PropertyValue next;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Value to assign when POJO has been instantiated.
|
19
|
+
*/
|
20
|
+
public final Object value;
|
21
|
+
|
22
|
+
protected PropertyValue(PropertyValue next, Object value)
|
23
|
+
{
|
24
|
+
this.next = next;
|
25
|
+
this.value = value;
|
26
|
+
}
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Method called to assign stored value of this property to specified
|
30
|
+
* bean instance
|
31
|
+
*/
|
32
|
+
public abstract void assign(Object bean)
|
33
|
+
throws IOException, JsonProcessingException;
|
34
|
+
|
35
|
+
/*
|
36
|
+
/**********************************************************
|
37
|
+
/* Concrete property value classes
|
38
|
+
/**********************************************************
|
39
|
+
*/
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Property value that used when assigning value to property using
|
43
|
+
* a setter method or direct field access.
|
44
|
+
*/
|
45
|
+
final static class Regular
|
46
|
+
extends PropertyValue
|
47
|
+
{
|
48
|
+
final SettableBeanProperty _property;
|
49
|
+
|
50
|
+
public Regular(PropertyValue next, Object value,
|
51
|
+
SettableBeanProperty prop)
|
52
|
+
{
|
53
|
+
super(next, value);
|
54
|
+
_property = prop;
|
55
|
+
}
|
56
|
+
|
57
|
+
@Override
|
58
|
+
public void assign(Object bean)
|
59
|
+
throws IOException, JsonProcessingException
|
60
|
+
{
|
61
|
+
_property.set(bean, value);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Property value type used when storing entries to be added
|
67
|
+
* to a POJO using "any setter" (method that takes name and
|
68
|
+
* value arguments, allowing setting multiple different
|
69
|
+
* properties using single method).
|
70
|
+
*/
|
71
|
+
final static class Any
|
72
|
+
extends PropertyValue
|
73
|
+
{
|
74
|
+
final SettableAnyProperty _property;
|
75
|
+
final String _propertyName;
|
76
|
+
|
77
|
+
public Any(PropertyValue next, Object value,
|
78
|
+
SettableAnyProperty prop,
|
79
|
+
String propName)
|
80
|
+
{
|
81
|
+
super(next, value);
|
82
|
+
_property = prop;
|
83
|
+
_propertyName = propName;
|
84
|
+
}
|
85
|
+
|
86
|
+
@Override
|
87
|
+
public void assign(Object bean)
|
88
|
+
throws IOException, JsonProcessingException
|
89
|
+
{
|
90
|
+
_property.set(bean, _propertyName, value);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Property value type used when storing entries to be added
|
96
|
+
* to a Map.
|
97
|
+
*/
|
98
|
+
final static class Map
|
99
|
+
extends PropertyValue
|
100
|
+
{
|
101
|
+
final Object _key;
|
102
|
+
|
103
|
+
public Map(PropertyValue next, Object value, Object key)
|
104
|
+
{
|
105
|
+
super(next, value);
|
106
|
+
_key = key;
|
107
|
+
}
|
108
|
+
|
109
|
+
@SuppressWarnings("unchecked")
|
110
|
+
@Override
|
111
|
+
public void assign(Object bean)
|
112
|
+
throws IOException, JsonProcessingException
|
113
|
+
{
|
114
|
+
((java.util.Map<Object,Object>) bean).put(_key, value);
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|