|
||||||||||
| 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.ProxyUnwrappingMarshaller<C>
public class ProxyUnwrappingMarshaller<C extends Converter>
Unwraps Hibernate proxies with no direct references to the Hibernate APIs
| Constructor Summary | |
|---|---|
ProxyUnwrappingMarshaller()
|
|
| Method Summary | |
|---|---|
String |
getElementName(Object o)
Returns the tag name for the object |
void |
marshalObject(Object object,
C converter)
Performs the conversion |
boolean |
supports(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 ProxyUnwrappingMarshaller()
| Method Detail |
|---|
public boolean supports(Object object)
ObjectMarshaller
supports in interface ObjectMarshaller<C extends Converter>object - the object which is about getting converted
true if the marshaller can/should perform the marshalling, false otherwise
public void marshalObject(Object object,
C converter)
throws ConverterException
ObjectMarshaller
marshalObject in interface ObjectMarshaller<C extends Converter>object - the object which is about getting convertedconverter - the Converter to use
ConverterException - on failurepublic String getElementName(Object o)
NameAwareMarshaller
getElementName in interface NameAwareMarshallero - the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||