toolbox.services
Class RegistryConfig

Package class diagram package RegistryConfig
java.lang.Object
  extended by toolbox.services.RegistryConfig

 class RegistryConfig
extends java.lang.Object

Package protected class to encapsulate the configuration of the default service registry implementation.


Constructor Summary
RegistryConfig(java.lang.String config)
          Construct a new registry config.
 
Method Summary
(package private)  EnvironmentConfig getEnvironmentConfig(java.lang.String name)
          Return the configuration of the named environment.
(package private)  java.lang.String getProperty(java.lang.String name)
          Return the value of the named property.
(package private)  ServiceConfig getServiceConfig(java.lang.String name)
          Return the configuration of the named service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryConfig

RegistryConfig(java.lang.String config)
         throws ServiceException
Construct a new registry config.

Parameters:
config - Path the the registry config file.
Throws:
ServiceException - if the configuration cannot be created.
Method Detail

getProperty

java.lang.String getProperty(java.lang.String name)
Return the value of the named property.

Parameters:
name - String containing property name.
Returns:
String containing property value.

getEnvironmentConfig

EnvironmentConfig getEnvironmentConfig(java.lang.String name)
Return the configuration of the named environment.

Parameters:
name - String containing the name of the environment.

getServiceConfig

ServiceConfig getServiceConfig(java.lang.String name)
Return the configuration of the named service.

Parameters:
name - String containing the name of the service.