| META TOPICPARENT | name="WebHome" |
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.
Configurator by design includes optimal defaults for an edge peer. That said, most all Platform configuration options can controlled through this class.
A trivial example is as follows:
try {
new Configurator("MyPeer", "usr", "pwd").save();
} catch (IllegalArgumentExcpetion iae) {
...
} catch (IOException ioe) {
}
MyJXTA2 effectively extends Configurator and can be referenced as such.
-- JamesTodd - 08 Sep 2003 |