org.sonatype.sisu.goodies.marshal.internal.xstream
Class XstreamMarshaller

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.xstream.XstreamMarshaller
All Implemented Interfaces:
Marshaller

@Named(value="xstream")
public class XstreamMarshaller
extends MarshallerSupport

XStream Marshaller.

Since:
1.0

Field Summary
 
Fields inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
log
 
Constructor Summary
XstreamMarshaller()
           
XstreamMarshaller(com.thoughtworks.xstream.XStream xstream)
           
 
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

XstreamMarshaller

@Inject
public XstreamMarshaller(com.thoughtworks.xstream.XStream xstream)

XstreamMarshaller

@TestAccessible
public XstreamMarshaller()
Method Detail

doMarshal

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

doUnmarshal

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


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