public class ClosureObjectMarshaller<T extends Converter> extends java.lang.Object implements ObjectMarshaller<T>
| Constructor and Description |
|---|
ClosureObjectMarshaller(java.lang.Class<?> clazz,
groovy.lang.Closure closure) |
| Modifier and Type | Method and Description |
|---|---|
void |
marshalObject(java.lang.Object object,
T converter)
Performs the conversion
|
boolean |
supports(java.lang.Object object)
Checks wheter the ObjectMarshaller is able/intended to support the given Object
|
public ClosureObjectMarshaller(java.lang.Class<?> clazz,
groovy.lang.Closure closure)
public boolean supports(java.lang.Object object)
ObjectMarshallersupports in interface ObjectMarshaller<T extends Converter>object - the object which is about getting convertedtrue if the marshaller can/should perform the marshalling, false otherwisepublic void marshalObject(java.lang.Object object,
T converter)
throws ConverterException
ObjectMarshallermarshalObject in interface ObjectMarshaller<T extends Converter>object - the object which is about getting convertedconverter - the Converter to useConverterException - on failure