ObjectIdResolver
| Modifier and Type | Field and Description |
|---|---|
| protected Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bindItem(ObjectIdGenerator.
The Object Identifier id,The POJO associated to that Identifier ob)Implements com. Method called when a POJO is deserialized and has an Object Identifier. |
| public boolean | canUseFor(ObjectIdResolver resolverType)
Implements com. Method called to check whether this resolver instance can be used for
Object Ids of specific resolver type; determination is based by passing a
configured "blueprint" (prototype) instance; from which the actual
instances are created (using |
| public ObjectIdResolver | newForDeserialization(Object
Deserialization context object used (of type
context)com.fasterxml.jackson.databind.DeserializationContext)
; may be needed by more complex resolvers to access contextual
information such as configuration.Implements com. Factory method called to create a new instance to use for deserialization: needed since resolvers may have state (a pool of objects). |
| public Object | resolveId(ObjectIdGenerator.
The Object Identifier idImplements com. Method called when deserialization encounters the given Object Identifier and requires the POJO associated with it. |
| _items | back to summary |
|---|---|
| protected Map<ObjectIdGenerator. | |
| SimpleObjectIdResolver | back to summary |
|---|---|
| public SimpleObjectIdResolver() | |
| bindItem | back to summary |
|---|---|
| public void bindItem(ObjectIdGenerator. Implements com. Doc from com. Method called when a POJO is deserialized and has an Object Identifier. Method exists so that implementation can keep track of existing object in JSON stream that could be useful for further resolution.
| |
| canUseFor | back to summary |
|---|---|
| public boolean canUseFor(ObjectIdResolver resolverType) Implements com. Doc from com. Method called to check whether this resolver instance can be used for
Object Ids of specific resolver type; determination is based by passing a
configured "blueprint" (prototype) instance; from which the actual
instances are created (using
| |
| newForDeserialization | back to summary |
|---|---|
| public ObjectIdResolver newForDeserialization(Object context) Implements com. Doc from com. Factory method called to create a new instance to use for deserialization: needed since resolvers may have state (a pool of objects).
Note that actual type of 'context' is
| |
| resolveId | back to summary |
|---|---|
| public Object resolveId(ObjectIdGenerator. Implements com. Doc from com. Method called when deserialization encounters the given Object Identifier and requires the POJO associated with it.
| |