JsonFactory that will create a proper
ObjectCodec to allow seam-less conversions between
JSON content and Java objects (POJOs).
The only addition to regular JsonFactory currently
is that ObjectMapper is constructed and passed as
the codec to use.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonFactory | copy()
Overrides com. JsonFactory that has
the same settings as this instance, but is otherwise
independent (i.e. nothing is actually shared, symbol tables
are separate).
|
| public final ObjectMapper | getCodec()
We'll override the method to return more specific type; co-variance
helps here
|
| public String | getFormatName()
Overrides com. |
| public MatchStrength | hasFormat(InputAccessor acc)
Sub-classes need to override this method
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| MappingJsonFactory | back to summary |
|---|---|
| public MappingJsonFactory() | |
| MappingJsonFactory | back to summary |
|---|---|
| public MappingJsonFactory(ObjectMapper mapper) | |
| MappingJsonFactory | back to summary |
|---|---|
| public MappingJsonFactory(JsonFactory src, ObjectMapper mapper) | |
| copy | back to summary |
|---|---|
| public JsonFactory copy() Overrides com. Doc from com. Method for constructing a new
| |
| getCodec | back to summary |
|---|---|
| public final ObjectMapper getCodec() Overrides com. We'll override the method to return more specific type; co-variance helps here
| |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Overrides com. Sub-classes need to override this method
| |
| hasFormat | back to summary |
|---|---|
| public MatchStrength hasFormat(InputAccessor acc) throws IOException Overrides com. Sub-classes need to override this method
| |