Class ProjectSettingsConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.core.Caching

    public class ProjectSettingsConverter
    extends com.thoughtworks.xstream.converters.reflection.ReflectionConverter
    XStream converter for ProjectSettings. Settings are serialized using XStream's built-in reflection serialization. The only catch is that a ProjectSettingsChangedEvent must be posted after new settings are loaded.
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)  
      • Methods inherited from class com.thoughtworks.xstream.converters.reflection.ReflectionConverter

        canConvert
      • Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter

        canAccess, doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshal, marshallField, readResolve, shouldUnmarshalField, shouldUnmarshalTransientFields, unmarshallField
      • Methods inherited from class java.lang.Object

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

      • ProjectSettingsConverter

        @Inject
        public ProjectSettingsConverter​(Project project)
    • Method Detail

      • unmarshal

        public java.lang.Object unmarshal​(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
                                          com.thoughtworks.xstream.converters.UnmarshallingContext context)
        Specified by:
        unmarshal in interface com.thoughtworks.xstream.converters.Converter
        Overrides:
        unmarshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter