Class XStreamJsonMarshaller

  • All Implemented Interfaces:
    AdaptrisMarshaller

    public class XStreamJsonMarshaller
    extends XStreamMarshallerImpl
    JSON implementation of AdaptrisMarshaller using XStream.

    This implementation is not intended to be used for marshalling adapter configuration (although it might be possible), but is intended for use where JSON is the desired data format used for transfer between systems. It uses JettisonMappedXmlDriver which allows conversion to and from java objects. However, restrictions will apply as detailed in the XStream JSON Tutorial

    In the adapter configuration file this class is aliased as xstream-json-marshaller which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • XStreamJsonMarshaller

        public XStreamJsonMarshaller()
    • Method Detail

      • getInstance

        protected com.thoughtworks.xstream.XStream getInstance()
        Description copied from class: XStreamMarshallerImpl
        Typically it will do something like this:-
         
         if (instance == null){
            create and configure a new instance
         }
         return instance;
         
         
        Specified by:
        getInstance in class XStreamMarshallerImpl
        Returns:
        a pre-configured instance.