livespace.osgi
Class Configuration

java.lang.Object
  extended by livespace.osgi.Configuration

public class Configuration
extends Object

Loads configuration information for a Livespace service from the main server according to the rules for finding and merging configuration from general to specific (room-wide, category-wide and host-specific).

Author:
Matthew Phillips

Constructor Summary
Configuration()
           
 
Method Summary
static Properties configurationFor(String serviceName)
          Load the configuration for a given service.
static Properties configurationFor(String serviceName, Properties defaults)
          Load the configuration for a given service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

configurationFor

public static Properties configurationFor(String serviceName)
Load the configuration for a given service.

Parameters:
serviceName - The service name. e.g. "livespace.clipboard" or "livespace.ui.teamthink".
Returns:
The service config.
See Also:
configurationFor(String, Properties)

configurationFor

public static Properties configurationFor(String serviceName,
                                          Properties defaults)
Load the configuration for a given service.

Parameters:
serviceName - The service name. e.g. "livespace.clipboard" or "livespace.ui.teamthink".
defaults - The default set of values if not overridden by loaded config info.
Returns:
The service config.


Copyright © 2008 Commonwealth of Australia