net.jxta.impl.peergroup
Class DefaultConfigurator
java.lang.Object
net.jxta.impl.peergroup.NullConfigurator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.