ClosureObjectMarshaller (Grails 2.3.8)
Date: 2014-04-24

Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      org.codehaus.groovy.grails.web.converters.marshaller.ClosureObjectMarshaller

All Implemented Interfaces:
  ObjectMarshaller

    @java.lang.SuppressWarnings("rawtypes")
    public class ClosureObjectMarshaller
    extends java.lang.Object

ObjectMarshaller that delegates the conversion logic to the supplied closure

Authors:
  Siegfried Puchbauer

Since:
  1.1

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

Method Summary
`void` | `marshalObject(java.lang.Object object, java.lang.Object converter)`
`boolean` | `supports(java.lang.Object object)`

Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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

### ClosureObjectMarshaller

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

Method Detail

### marshalObject

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

### supports

    public boolean supports(java.lang.Object object)

Groovy Documentation