org.sonatype.sisu.goodies.marshal.internal.jackson
Class JacksonMarshaller

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.ComponentSupport
      extended by org.sonatype.sisu.goodies.marshal.internal.MarshallerSupport
          extended by org.sonatype.sisu.goodies.marshal.internal.jackson.JacksonMarshaller
All Implemented Interfaces:
Marshaller

@Named(value="jackson")
public class JacksonMarshaller
extends MarshallerSupport

Jackson Marshaller.

Since:
1.0

Field Summary
 
Fields inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
log
 
Constructor Summary
JacksonMarshaller()
           
JacksonMarshaller(org.codehaus.jackson.map.ObjectMapper mapper)
           
 
Method Summary
protected  String doMarshal(Object body)
           
protected
<T> T
doUnmarshal(String marshaled, Class<T> type)
           
 
Methods inherited from class org.sonatype.sisu.goodies.marshal.internal.MarshallerSupport
marshal, unmarshal, unmarshal
 
Methods inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
createLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacksonMarshaller

@Inject
public JacksonMarshaller(org.codehaus.jackson.map.ObjectMapper mapper)

JacksonMarshaller

@TestAccessible
public JacksonMarshaller()
Method Detail

doMarshal

protected String doMarshal(Object body)
                    throws IOException
Specified by:
doMarshal in class MarshallerSupport
Throws:
IOException

doUnmarshal

protected <T> T doUnmarshal(String marshaled,
                            Class<T> type)
                 throws IOException
Specified by:
doUnmarshal in class MarshallerSupport
Throws:
IOException


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.