Package edu.wpi.grip.core.serialization
Class ProjectSettingsConverter
- java.lang.Object
-
- com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
-
- com.thoughtworks.xstream.converters.reflection.ReflectionConverter
-
- edu.wpi.grip.core.serialization.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 forProjectSettings
. Settings are serialized using XStream's built-in reflection serialization. The only catch is that aProjectSettingsChangedEvent
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
-
-
Constructor Summary
Constructors Constructor Description ProjectSettingsConverter(Project project)
-
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
-
-
-
-
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 interfacecom.thoughtworks.xstream.converters.Converter
- Overrides:
unmarshal
in classcom.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
-
-