org.kuali.rice.krad.service.impl
Class XmlObjectSerializerServiceImpl.ProxyConverter

java.lang.Object
  extended by com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
      extended by com.thoughtworks.xstream.converters.reflection.ReflectionConverter
          extended by org.kuali.rice.krad.service.impl.XmlObjectSerializerServiceImpl.ProxyConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
Enclosing class:
XmlObjectSerializerServiceImpl

public class XmlObjectSerializerServiceImpl.ProxyConverter
extends com.thoughtworks.xstream.converters.reflection.ReflectionConverter

This custom converter only handles proxies for BusinessObjects. List-type proxies are handled by configuring XStream to treat ListProxyDefaultImpl as ArrayLists (see constructor for this service).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException
 
Field Summary
 
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
mapper, reflectionProvider, serializationMethodInvoker
 
Constructor Summary
XmlObjectSerializerServiceImpl.ProxyConverter(com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
           
 
Method Summary
 boolean canConvert(Class clazz)
           
 void marshal(Object obj, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
           
 
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
doMarshal, doUnmarshal, instantiateNewInstance, marshallField, unmarshal, unmarshallField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlObjectSerializerServiceImpl.ProxyConverter

public XmlObjectSerializerServiceImpl.ProxyConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
                                                     com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Method Detail

canConvert

public boolean canConvert(Class clazz)
Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
Overrides:
canConvert in class com.thoughtworks.xstream.converters.reflection.ReflectionConverter

marshal

public void marshal(Object obj,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
                    com.thoughtworks.xstream.converters.MarshallingContext context)
Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter
Overrides:
marshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.