|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.grails.web.converters.marshaller.ClosureOjectMarshaller<T>
public class ClosureOjectMarshaller<T extends Converter>
ObjectMarshaller that delegates the conversion logic to the supplied closure
| Constructor Summary | |
|---|---|
ClosureOjectMarshaller(java.lang.Class<?> clazz,
groovy.lang.Closure closure)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClosureOjectMarshaller(java.lang.Class<?> clazz,
groovy.lang.Closure closure)
| Method Detail |
|---|
public boolean supports(java.lang.Object object)
ObjectMarshaller
supports in interface ObjectMarshaller<T extends Converter>object - the object which is about getting converted
true if the marshaller can/should perform the marshalling, false otherwise
public void marshalObject(java.lang.Object object,
T converter)
throws ConverterException
ObjectMarshaller
marshalObject in interface ObjectMarshaller<T extends Converter>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 | ||||||||