Exemplo n.º 1
0
 public XmlSolverConfigurer() {
   // TODO From Xstream 1.3.3 that KeySorter will be the default. See
   // http://jira.codehaus.org/browse/XSTR-363
   xStream =
       new XStream(
           new PureJavaReflectionProvider(new FieldDictionary(new NativeFieldKeySorter())));
   xStream.setMode(XStream.ID_REFERENCES);
   Annotations.configureAliases(xStream, LocalSearchSolverConfig.class);
 }
 /**
  * Creates and returns an {@link XStreamer} used by this preset manager.
  *
  * @return
  */
 protected XStream createStreamer() {
   streamer = XMLUtils.getDefaultStreamer();
   Annotations.configureAliases(
       streamer, EegSystemsPresetManager.class, MontageGenerators.class, IMontageGenerator.class);
   return streamer;
 }
Exemplo n.º 3
0
 public void addXstreamAlias(Class aliasClass) {
   Annotations.configureAliases(xStream, aliasClass);
 }