Class JsonXStreamMarshallerFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class JsonXStreamMarshallerFactory
    extends XmlXStreamMarshallerFactory
    • Constructor Detail

      • JsonXStreamMarshallerFactory

        public JsonXStreamMarshallerFactory()
    • Method Detail

      • afterPropertiesSet

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

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

        protected org.springframework.oxm.xstream.XStreamMarshaller createMarshaller()
        creates a custom json writer which swallows top most root nodes
        Overrides:
        createMarshaller in class XmlXStreamMarshallerFactory