Package | Description |
---|---|
com.fasterxml.jackson.annotation |
Public core annotations, most of which are used to configure how
Data Mapping/Binding works.
|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.cfg |
Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind ). |
com.fasterxml.jackson.databind.deser |
Contains implementation classes of deserialization part of
data binding.
|
com.fasterxml.jackson.databind.deser.impl |
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
|
com.fasterxml.jackson.databind.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
com.fasterxml.jackson.databind.ser |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
Modifier and Type | Class and Description |
---|---|
static class |
ObjectIdGenerators.IntSequenceGenerator
Simple sequence-number based generator, which uses basic Java
int s (starting with value 1) as Object Identifiers. |
static class |
ObjectIdGenerators.None
Abstract marker class used to allow explicitly specifying
that no generator is used; which also implies that no
Object Id is to be included or used.
|
static class |
ObjectIdGenerators.PropertyGenerator
Abstract place-holder class which is used to denote case
where Object Identifier to use comes from a POJO property
(getter method or field).
|
static class |
ObjectIdGenerators.StringIdGenerator
Implementation that will accept arbitrary (but unique) String Ids on
deserialization, and (by default) use random UUID generation similar
to
ObjectIdGenerators.UUIDGenerator for generation ids. |
static class |
ObjectIdGenerators.UUIDGenerator
Implementation that just uses
UUID s as reliably
unique identifiers: downside is that resulting String is
36 characters long. |
Modifier and Type | Method and Description |
---|---|
ObjectIdGenerator<Integer> |
ObjectIdGenerators.IntSequenceGenerator.forScope(Class<?> scope) |
ObjectIdGenerator<UUID> |
ObjectIdGenerators.UUIDGenerator.forScope(Class<?> scope)
Can just return base instance since this is essentially scopeless
|
ObjectIdGenerator<String> |
ObjectIdGenerators.StringIdGenerator.forScope(Class<?> scope) |
abstract ObjectIdGenerator<T> |
ObjectIdGenerator.forScope(Class<?> scope)
Factory method to create a blueprint instance for specified
scope.
|
ObjectIdGenerator<Integer> |
ObjectIdGenerators.IntSequenceGenerator.newForSerialization(Object context) |
ObjectIdGenerator<UUID> |
ObjectIdGenerators.UUIDGenerator.newForSerialization(Object context)
Can just return base instance since this is essentially scopeless
|
ObjectIdGenerator<String> |
ObjectIdGenerators.StringIdGenerator.newForSerialization(Object context) |
abstract ObjectIdGenerator<T> |
ObjectIdGenerator.newForSerialization(Object context)
Factory method called to create a new instance to use for
serialization: needed since generators may have state
(next id to produce).
|
Modifier and Type | Method and Description |
---|---|
boolean |
ObjectIdGenerators.UUIDGenerator.canUseFor(ObjectIdGenerator<?> gen)
Since UUIDs are always unique, let's fully ignore scope definition
|
boolean |
ObjectIdGenerators.StringIdGenerator.canUseFor(ObjectIdGenerator<?> gen) |
abstract boolean |
ObjectIdGenerator.canUseFor(ObjectIdGenerator<?> gen)
Method called to check whether this generator instance can
be used for Object Ids of specific generator type and
scope; determination is based by passing a configured
"blueprint" (prototype) instance; from which the actual
instances are created (using
newForSerialization(java.lang.Object) ). |
Modifier and Type | Method and Description |
---|---|
ObjectIdGenerator<?> |
DatabindContext.objectIdGeneratorInstance(Annotated annotated,
ObjectIdInfo objectIdInfo) |
Modifier and Type | Method and Description |
---|---|
abstract WritableObjectId |
SerializerProvider.findObjectId(Object forPojo,
ObjectIdGenerator<?> generatorType)
Method called to find the Object Id for given POJO, if one
has been generated.
|
abstract ReadableObjectId |
DeserializationContext.findObjectId(Object id,
ObjectIdGenerator<?> generator,
ObjectIdResolver resolver)
Method called to find and return entry corresponding to given
Object Id: will add an entry if necessary, and never returns null
|
Modifier and Type | Method and Description |
---|---|
ObjectIdGenerator<?> |
HandlerInstantiator.objectIdGeneratorInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass)
Method called to construct a ObjectIdHandler instance of specified type.
|
Modifier and Type | Method and Description |
---|---|
ReadableObjectId |
DefaultDeserializationContext.findObjectId(Object id,
ObjectIdGenerator<?> gen,
ObjectIdResolver resolverType) |
Modifier and Type | Field and Description |
---|---|
ObjectIdGenerator<?> |
ObjectIdReader.generator
Blueprint generator instance: actual instance will be
fetched from
SerializerProvider using this as
the key. |
Modifier and Type | Method and Description |
---|---|
ObjectIdGenerator<Object> |
PropertyBasedObjectIdGenerator.forScope(Class<?> scope) |
ObjectIdGenerator<Object> |
PropertyBasedObjectIdGenerator.newForSerialization(Object context) |
Modifier and Type | Method and Description |
---|---|
static ObjectIdReader |
ObjectIdReader.construct(JavaType idType,
PropertyName propName,
ObjectIdGenerator<?> generator,
JsonDeserializer<?> deser,
SettableBeanProperty idProp,
ObjectIdResolver resolver)
Factory method called by
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built. |
Constructor and Description |
---|
ObjectIdReader(JavaType t,
PropertyName propName,
ObjectIdGenerator<?> gen,
JsonDeserializer<?> deser,
SettableBeanProperty idProp,
ObjectIdResolver resolver) |
Modifier and Type | Field and Description |
---|---|
protected Class<? extends ObjectIdGenerator<?>> |
ObjectIdInfo._generator |
Modifier and Type | Method and Description |
---|---|
Class<? extends ObjectIdGenerator<?>> |
ObjectIdInfo.getGeneratorType() |
Constructor and Description |
---|
ObjectIdInfo(PropertyName prop,
Class<?> scope,
Class<? extends ObjectIdGenerator<?>> gen,
boolean alwaysAsId) |
ObjectIdInfo(PropertyName prop,
Class<?> scope,
Class<? extends ObjectIdGenerator<?>> gen,
boolean alwaysAsId,
Class<? extends ObjectIdResolver> resolver) |
ObjectIdInfo(PropertyName name,
Class<?> scope,
Class<? extends ObjectIdGenerator<?>> gen,
Class<? extends ObjectIdResolver> resolver) |
Modifier and Type | Field and Description |
---|---|
protected ArrayList<ObjectIdGenerator<?>> |
DefaultSerializerProvider._objectIdGenerators |
Modifier and Type | Method and Description |
---|---|
WritableObjectId |
DefaultSerializerProvider.findObjectId(Object forPojo,
ObjectIdGenerator<?> generatorType) |
Modifier and Type | Class and Description |
---|---|
class |
PropertyBasedObjectIdGenerator |
Modifier and Type | Field and Description |
---|---|
ObjectIdGenerator<?> |
WritableObjectId.generator |
ObjectIdGenerator<?> |
ObjectIdWriter.generator
Blueprint generator instance: actual instance will be
fetched from
SerializerProvider using this as
the key. |
Modifier and Type | Method and Description |
---|---|
ObjectIdGenerator<Object> |
PropertyBasedObjectIdGenerator.forScope(Class<?> scope) |
ObjectIdGenerator<Object> |
PropertyBasedObjectIdGenerator.newForSerialization(Object context) |
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyBasedObjectIdGenerator.canUseFor(ObjectIdGenerator<?> gen)
We must override this method, to prevent errors when scopes are the same,
but underlying class (on which to access property) is different.
|
static ObjectIdWriter |
ObjectIdWriter.construct(JavaType idType,
PropertyName propName,
ObjectIdGenerator<?> generator,
boolean alwaysAsId)
Factory method called by
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built. |
Constructor and Description |
---|
ObjectIdWriter(JavaType t,
SerializableString propName,
ObjectIdGenerator<?> gen,
JsonSerializer<?> ser,
boolean alwaysAsId) |
WritableObjectId(ObjectIdGenerator<?> generator) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.