Groovy Documentation

org.codehaus.groovy.grails.web.converters.marshaller
[Java] Class ClosureOjectMarshaller

java.lang.Object
  org.codehaus.groovy.grails.web.converters.marshaller.ClosureOjectMarshaller
All Implemented Interfaces:
ObjectMarshaller

@SuppressWarnings("rawtypes")
public class ClosureOjectMarshaller

ObjectMarshaller that delegates the conversion logic to the supplied closure

Authors:
Siegfried Puchbauer
Since:
1.1


Constructor Summary
ClosureOjectMarshaller(java.lang.Class clazz, groovy.lang.Closure closure)

 
Method Summary
void marshalObject(java.lang.Object object, T converter)

boolean supports(java.lang.Object object)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

ClosureOjectMarshaller

public ClosureOjectMarshaller(java.lang.Class clazz, groovy.lang.Closure closure)


 
Method Detail

marshalObject

public void marshalObject(java.lang.Object object, T converter)


supports

public boolean supports(java.lang.Object object)


 

Groovy Documentation