Interface IConfigStore

All Known Implementing Classes:
AuthenticationConfig, AuthManagerConfig, AuthManagersConfig, AuthorizationConfig, AuthzManagerConfig, AuthzManagersConfig, DatabaseConfig, EngineConfig, JssSubsystemConfig, LDAPAuthenticationConfig, LDAPConfig, LDAPConnectionConfig, PKISocketConfig, PreOpConfig, PropConfigStore, PublishingConfig, PublishingMapperConfig, PublishingPublisherConfig, PublishingRuleConfig, RandomConfig, SSLConfig, SubsystemConfig, SubsystemsConfig, UGSubsystemConfig

public interface IConfigStore
An interface represents a configuration store. A configuration store is an abstraction of a hierarchical store to keep arbitrary data indexed by string names.

In the following example:

      param1=value1
      configStore1.param11=value11
      configStore1.param12=value12
      configStore1.subStore1.param111=value111
      configStore1.subStore1.param112=value112
      configStore2.param21=value21
 
The top config store has parameters param1 and sub-stores configStore1 and configStore2.
The following illustrates how a config store is used.
 // the top config store is passed to the following method.
 public void init(IConfigStore config) throws EBaseException {
     IConfigStore store = config;
     String valx = config.getString("param1");
     // valx is "value1" <p>

     IConfigStore substore1 = config.getSubStore("configStore1");
     String valy = substore1.getString("param11");
     // valy is "value11" <p>

     IConfigStore substore2 = config.getSubStore("configStore2");
     String valz = substore2.getString("param21");
     // valz is "value21" <p>
 }
 
Version:
$Revision$, $Date$