程序包 | 说明 |
---|---|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.map.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) . |
org.codehaus.jackson.mrbean |
Package that implements "interface materializer" functionality, whereby
abstract classes and interfaces can be used as-is, and framework constructs
implementations as needed.
|
限定符和类型 | 方法和说明 |
---|---|
void |
ObjectMapper.registerModule(Module module)
Method for registering a module that can extend functionality
provided by this mapper; for example, by adding providers for
custom serializers and deserializers.
|
ObjectMapper |
ObjectMapper.withModule(Module module)
Fluent-style alternative to
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) ; functionally equivalent to:
mapper.registerModule(module);
return mapper;
NOTE: name is unfortunately misleading in suggesting that a new instance
might be created (as is the case with most other 'withXxx()' methods
for Jackson core objects) -- this is not the case; rather, this is just
a variant of ObjectMapper.registerModule(org.codehaus.jackson.map.Module) but one that returns 'this'
(like it should return, but does not for historical reasons). |
限定符和类型 | 类和说明 |
---|---|
class |
SimpleModule
Simple
Module implementation that allows registration
of serializers and deserializers, and bean serializer
and deserializer modifiers. |
限定符和类型 | 类和说明 |
---|---|
class |
MrBeanModule |