Class XmlXStreamFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
    Direct Known Subclasses:
    JsonXStreamFactory

    public class XmlXStreamFactory
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
    XStream instance factory
    • Field Summary

      • Fields inherited from interface org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      protected com.thoughtworks.xstream.mapper.MapperWrapper createMapperWrapper​(com.thoughtworks.xstream.mapper.MapperWrapper parent)
      Due to schema compatibility requirements, customizes a MapperWrapper for arrays to don't generate a -array suffixes.
      java.lang.Object getObject()  
      protected com.thoughtworks.xstream.XStream getObjectInternal()  
      java.lang.Class getObjectType()  
      boolean isSingleton()  
      • Methods inherited from class java.lang.Object

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

      • XmlXStreamFactory

        public XmlXStreamFactory()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • getObject

        public java.lang.Object getObject()
                                   throws java.lang.Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean
        Throws:
        java.lang.Exception
      • getObjectInternal

        protected com.thoughtworks.xstream.XStream getObjectInternal()
      • createMapperWrapper

        protected com.thoughtworks.xstream.mapper.MapperWrapper createMapperWrapper​(com.thoughtworks.xstream.mapper.MapperWrapper parent)
        Due to schema compatibility requirements, customizes a MapperWrapper for arrays to don't generate a -array suffixes.
      • getObjectType

        public java.lang.Class getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean