 |
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
|