org.sonatype.sisu.goodies.marshal.internal.jackson
Class JacksonMarshaller
java.lang.Object
org.sonatype.sisu.goodies.common.ComponentSupport
org.sonatype.sisu.goodies.marshal.internal.MarshallerSupport
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JacksonMarshaller
@Inject
public JacksonMarshaller(org.codehaus.jackson.map.ObjectMapper mapper)
JacksonMarshaller
@TestAccessible
public JacksonMarshaller()
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.