net.vz.mongodb.jackson.internal
Class MongoJacksonMapperModule

java.lang.Object
  extended by org.codehaus.jackson.map.Module
      extended by net.vz.mongodb.jackson.internal.MongoJacksonMapperModule
All Implemented Interfaces:
org.codehaus.jackson.Versioned

public class MongoJacksonMapperModule
extends org.codehaus.jackson.map.Module

The ObjectID serialising module

Since:
1.0
Author:
James Roper

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.Module
org.codehaus.jackson.map.Module.SetupContext
 
Field Summary
static org.codehaus.jackson.map.Module INSTANCE
           
 
Constructor Summary
MongoJacksonMapperModule()
           
 
Method Summary
static org.codehaus.jackson.map.ObjectMapper configure(org.codehaus.jackson.map.ObjectMapper objectMapper)
          Configure the given object mapper to be used with the Mongo Jackson Mapper.
 String getModuleName()
           
 void setupModule(org.codehaus.jackson.map.Module.SetupContext context)
           
 org.codehaus.jackson.Version version()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final org.codehaus.jackson.map.Module INSTANCE
Constructor Detail

MongoJacksonMapperModule

public MongoJacksonMapperModule()
Method Detail

configure

public static org.codehaus.jackson.map.ObjectMapper configure(org.codehaus.jackson.map.ObjectMapper objectMapper)
Configure the given object mapper to be used with the Mongo Jackson Mapper. Please call this method rather than calling objectMapper.with(MongoJacksonMapperModule.INSTANCE), because Jacksons module system doesn't allow the mongo jackson mapper to do all the configuration it needs to do. This method will do that configuration though.

Parameters:
objectMapper - The object mapper to configure
Returns:
This object mapper (for chaining)

getModuleName

public String getModuleName()
Specified by:
getModuleName in class org.codehaus.jackson.map.Module

version

public org.codehaus.jackson.Version version()
Specified by:
version in interface org.codehaus.jackson.Versioned
Specified by:
version in class org.codehaus.jackson.map.Module

setupModule

public void setupModule(org.codehaus.jackson.map.Module.SetupContext context)
Specified by:
setupModule in class org.codehaus.jackson.map.Module


Copyright © 2011-2012 VZ Netzwerke. All Rights Reserved.