org.codehaus.groovy.grails.web.converters.marshaller.json
Class ValidationErrorsMarshaller
java.lang.Object
org.codehaus.groovy.grails.web.converters.marshaller.json.ValidationErrorsMarshaller
- All Implemented Interfaces:
- ObjectMarshaller<JSON>, ApplicationContextAware
public class ValidationErrorsMarshaller
- extends Object
- implements ObjectMarshaller<JSON>, ApplicationContextAware
- Since:
- 1.1
- Author:
- Siegfried Puchbauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationErrorsMarshaller
public ValidationErrorsMarshaller()
supports
public boolean supports(Object object)
- Description copied from interface:
ObjectMarshaller
- Checks wheter the ObjectMarshaller is able/intended to support the given Object
- Specified by:
supports
in interface ObjectMarshaller<JSON>
- Parameters:
object
- the object which is about getting converted
- Returns:
true
if the marshaller can/should perform the marshalling, false
otherwise
marshalObject
public void marshalObject(Object object,
JSON json)
throws ConverterException
- Description copied from interface:
ObjectMarshaller
- Performs the conversion
- Specified by:
marshalObject
in interface ObjectMarshaller<JSON>
- Parameters:
object
- the object which is about getting convertedjson
- the Converter to use
- Throws:
ConverterException
- on failure
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
- Specified by:
setApplicationContext
in interface ApplicationContextAware
- Throws:
BeansException
Copyright (c) 2005-2009 The Grails project