Class AbstractXStreamService<T>

    • Constructor Detail

      • AbstractXStreamService

        public AbstractXStreamService()
    • Method Detail

      • createXStream

        protected com.thoughtworks.xstream.XStream createXStream()
        Description copied from class: GenericXStreamService
        This method must be implemented by subclass and has to return a properly configured XStream object.
        Specified by:
        createXStream in class GenericXStreamService<T>
        Returns:
        a fully configured xstream object
      • newXStreamInstance

        protected abstract com.thoughtworks.xstream.XStream newXStreamInstance()
        Returns:
        a new XStream instance
      • initializeXStream

        protected abstract void initializeXStream​(com.thoughtworks.xstream.XStream xstream)
        Force implementing classes to initialize the XStream instance used in this service. E.g. register converters, set aliases, process annotations, ...
        Parameters:
        xstream - the XStream instance used in this service
      • getXstream

        protected com.thoughtworks.xstream.XStream getXstream()
        Returns:
        the XStream used in the service