Class XmlObjectSerializerServiceImpl.ProxyConverter

java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
org.kuali.rice.krad.service.impl.XmlObjectSerializerServiceImpl.ProxyConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.core.Caching
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, com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException
  • Field Summary

    Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter

    mapper, reflectionProvider, serializationMembers, serializationMethodInvoker
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyConverter(com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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

    canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshal, unmarshallField

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProxyConverter

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

    • 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