|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
@java.lang.SuppressWarnings("rawtypes")
public interface ObjectMarshaller
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(java.lang.Object object, java.lang.Object converter)
Performs the conversion |
boolean
|
supports(java.lang.Object object)
Checks wheter the ObjectMarshaller is able/intended to support the given Object |
| Method Detail |
|---|
public void marshalObject(java.lang.Object object, java.lang.Object converter)
object - the object which is about getting convertedconverter - the Converter to use
public boolean supports(java.lang.Object object)
object - the object which is about getting convertedtrue if the marshaller can/should perform the marshalling, false otherwise
Groovy Documentation