Project JXTA

net.jxta.impl.peergroup
Class DefaultConfigurator

java.lang.Object
  extended by net.jxta.impl.peergroup.NullConfigurator
      extended by net.jxta.impl.peergroup.DefaultConfigurator
All Implemented Interfaces:
PlatformConfigurator, Configurator

public class DefaultConfigurator
extends NullConfigurator

The default platform configurator. This implementation provides the ability to reconfigure the the Platform peer group via an AWT based dialog. This is the original JXTA configuration mechanism.

See Also:
Configurator

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jxta.impl.peergroup.NullConfigurator
NullConfigurator.ProxyAuthenticator
 
Field Summary
 
Fields inherited from class net.jxta.impl.peergroup.NullConfigurator
advertisement, configFile, CONFIGFILENAME, jxtaHomeDir, propertiesFile, PROPERTIESFILENAME
 
Constructor Summary
DefaultConfigurator()
          Configures the platform using the default directory.
DefaultConfigurator(File homeDir)
          Configures the platform using the specified directory.
 
Method Summary
 PlatformConfig getPlatformConfig()
          Retrieve the associated PlatformConfig and potentially reconfigure the parameters before returning.
 boolean isReconfigure()
          Determine if a forced reconfiguration is set for the next call to PlatformConfigurator.getPlatformConfig().
 void setReconfigure(boolean reconfigure)
          Sets the reconfiguration status to the specified status.
 
Methods inherited from class net.jxta.impl.peergroup.NullConfigurator
adjustLog4JPriority, getConfigParams, getJXTAHome, load, load, save, save, setConfigParams, setPlatformConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurator

public DefaultConfigurator()
                    throws ConfiguratorException
Configures the platform using the default directory.

Throws:
ConfiguratorException

DefaultConfigurator

public DefaultConfigurator(File homeDir)
                    throws ConfiguratorException
Configures the platform using the specified directory.

Throws:
ConfiguratorException
Method Detail

getPlatformConfig

public PlatformConfig getPlatformConfig()
                                 throws ConfiguratorException
Retrieve the associated PlatformConfig and potentially reconfigure the parameters before returning.

Specified by:
getPlatformConfig in interface PlatformConfigurator
Overrides:
getPlatformConfig in class NullConfigurator
Returns:
PlatformConfig
Throws:
ConfiguratorException

setReconfigure

public void setReconfigure(boolean reconfigure)
Sets the reconfiguration status to the specified status. If true then reconfiguration will be forced the next time the PlatformConfig is retrieved.

Specified by:
setReconfigure in interface PlatformConfigurator
Overrides:
setReconfigure in class NullConfigurator
Parameters:
reconfigure - If true then a forced reconfiguration will occur the next time PlatformConfigurator.getPlatformConfig() is called.

isReconfigure

public boolean isReconfigure()
Determine if a forced reconfiguration is set for the next call to PlatformConfigurator.getPlatformConfig().

Specified by:
isReconfigure in interface PlatformConfigurator
Overrides:
isReconfigure in class NullConfigurator
Returns:
Returns true if a forced reconfiguration will occur the next time PlatformConfigurator.getPlatformConfig() is called.

JXTA J2SE