org.jboss.seam.social
Class JsonMapperJackson

java.lang.Object
  extended by org.jboss.seam.social.JsonMapperJackson
All Implemented Interfaces:
Serializable, org.jboss.seam.social.JsonMapper

@ApplicationScoped
public class JsonMapperJackson
extends Object
implements org.jboss.seam.social.JsonMapper

This Bean manage the Json Mapper to serialize and de-serialize Json data coming from and sent to services It uses an ObjectMapper Jackson.

Author:
Antoine Sabot-Durand
See Also:
Serialized Form

Field Summary
protected  javax.enterprise.inject.Instance<org.codehaus.jackson.map.Module> moduleInstances
           
 
Constructor Summary
JsonMapperJackson()
           
 
Method Summary
protected  void init()
           
 void registerModule(org.codehaus.jackson.map.Module module)
          Register a Jackson configuration Module to set special rules for de-serialization
<T> T
requestObject(org.jboss.seam.social.rest.RestResponse resp, Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moduleInstances

@Inject
@Any
protected javax.enterprise.inject.Instance<org.codehaus.jackson.map.Module> moduleInstances
Constructor Detail

JsonMapperJackson

public JsonMapperJackson()
Method Detail

requestObject

public <T> T requestObject(org.jboss.seam.social.rest.RestResponse resp,
                           Class<T> clazz)
Specified by:
requestObject in interface org.jboss.seam.social.JsonMapper

registerModule

public void registerModule(org.codehaus.jackson.map.Module module)
Register a Jackson configuration Module to set special rules for de-serialization

Parameters:
module - to register

init

@PostConstruct
protected void init()


Copyright © 2011 Seam Framework. All Rights Reserved.