The Source for Java Technology Collaboration


The net.jxta.util.config.Configurator class can be used, by extension or invoked directy, to perform intial Peer configuration without invoking the Platform Config Tool.

By design, Configurator includes optimal defaults for an edge peer. As such, constructing a default JXTA configuration is trivial:

  try {
    new Configurator("MyPeer", "usr", "pwd").save();
  } catch (IllegalArgumentExcpetion iae) {
    ...
  } catch (IOException ioe) {
    ...
  }

Further, most Platform configuration options can configured through this class.

MyJXTA2 effectively extends Configurator and can be referenced as such.

-- JamesTodd - 08 Sep 2003

Topic UILessConfiguration . { Edit | Ref-By | Printable | Diffs r3 < r2 < r1 | More }
 XML java.net RSS

Revision r3 - 17 Sep 2003 - 07:35:21 - Main.gonzo
Parents: WebHome