JXTA

net.jxta.peergroup
Interface Configurator


Deprecated. This interface has been replaced with the NetworkConfigurator.

@Deprecated
public interface Configurator

A configurator is responsible for the persistence and validation of configuration parameters.


Method Summary
 ConfigParams getConfigParams()
          Deprecated. Retrieve the parameters associated with this configuration from the default location.
 ConfigParams load()
          Deprecated. Loading of existing configuration is best accomplished by use of specific constructors of the implementing configurator. This method complicates the state management of configuration parameters and may have unpredictable results depending upon the constructor and configuration set methods used prior to it's execution.
 boolean save()
          Deprecated. Persist the parameters associated with this configuration to the standard location.
 void setConfigParams(ConfigParams cp)
          Deprecated. Configuration parameters should be set individually via whatever interfaces implementing configurator provides. This method over-writes all configuration settings in an unpredictable way.
 

Method Detail

getConfigParams

ConfigParams getConfigParams()
                             throws ConfiguratorException
Deprecated. 
Retrieve the parameters associated with this configuration from the default location. If necessary the parameters will be created or an opportunity to adjust them will be provided.

Returns:
The configuration parameters.
Throws:
ConfiguratorException - If there was a failure in retrieving the parameters. This is normally a chained exception to the underlying cause.

setConfigParams

@Deprecated
void setConfigParams(ConfigParams cp)
Deprecated. Configuration parameters should be set individually via whatever interfaces implementing configurator provides. This method over-writes all configuration settings in an unpredictable way.

Sets the parameters associated with this configuration object to the provided values.

Parameters:
cp - The parameters to be associated with this configuration.

load

@Deprecated
ConfigParams load()
                  throws ConfiguratorException
Deprecated. Loading of existing configuration is best accomplished by use of specific constructors of the implementing configurator. This method complicates the state management of configuration parameters and may have unpredictable results depending upon the constructor and configuration set methods used prior to it's execution.

Retrieves the persisted parameters associated with this configuration from the standard location.

Returns:
The configuration parameters.
Throws:
ConfiguratorException - If there was a failure in retrieving the persisted parameters. This is normally a chained exception to the underlying cause.

save

boolean save()
             throws ConfiguratorException
Deprecated. 
Persist the parameters associated with this configuration to the standard location.

Returns:
true if the configuration was successfully saved otherwise false. If the parameters are not persisted then false/code> is returned.
Throws:
ConfiguratorException - If there was a failure in persisting the parameters. This is normally a chained exception to the underlying cause.

JXSE