|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectMarshaller<T extends Converter>
An ObjectMarshaller is responsible for converting a Java/Groovy Object graph to a serialized form (JSON,XML) The ObjectMarshaller implementation must use a a type parameter - either grails.convereters.JSON or grails.converters.XML and it should to be thread-safe
| Method Summary | |
|---|---|
void |
marshalObject(Object object,
T converter)
Performs the conversion |
boolean |
supports(Object object)
Checks wheter the ObjectMarshaller is able/intended to support the given Object |
| Method Detail |
|---|
boolean supports(Object object)
object - the object which is about getting converted
true if the marshaller can/should perform the marshalling, false otherwise
void marshalObject(Object object,
T converter)
throws ConverterException
object - the object which is about getting convertedconverter - the Converter to use
ConverterException - on failure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||