org.sonatype.sisu.goodies.marshal
Interface Marshaller

All Known Implementing Classes:
JacksonMarshaller, JaxbMarshaller, MarshallerSupport, XstreamMarshaller

public interface Marshaller

Abstraction of marshaling strategy.

Since:
1.0

Method Summary
 String marshal(Object value)
           
<T> T
unmarshal(String marshaled, Class<T> type)
           
<T> T
unmarshal(String marshaled, com.google.inject.TypeLiteral<T> type)
           
 

Method Detail

marshal

String marshal(Object value)
               throws Exception
Throws:
Exception

unmarshal

<T> T unmarshal(String marshaled,
                Class<T> type)
            throws Exception
Throws:
Exception

unmarshal

<T> T unmarshal(String marshaled,
                com.google.inject.TypeLiteral<T> type)
            throws Exception
Throws:
Exception


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