creamtec.webcream.core
Class WebCreamPropertiesManager

java.lang.Object
  extended by creamtec.webcream.core.WebCreamPropertiesManager

public class WebCreamPropertiesManager
extends java.lang.Object

Loads and manages the configuration properties for all applications configured in WebCream/conf directory.


Method Summary
 WebCreamProperties getAppProperties(java.lang.String appName)
          Returns the properties for the given application name.
static WebCreamPropertiesManager getInstance()
          Returns the singlton instance of the property manager
 java.util.HashMap getPropertiesMap()
          Returns a map of all loaded application configurations
static void init(java.lang.String configDirectoryFileName)
          Factory method used to create and initialize the property manager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WebCreamPropertiesManager getInstance()
                                             throws java.lang.Exception
Returns the singlton instance of the property manager

Returns:
WebCreamPropertiesManager
Throws:
java.lang.Exception

init

public static void init(java.lang.String configDirectoryFileName)
                 throws java.lang.Exception
Factory method used to create and initialize the property manager

Parameters:
configDirectoryFileName - configuration directory file name, from which to read all property files
Throws:
java.lang.Exception

getAppProperties

public WebCreamProperties getAppProperties(java.lang.String appName)
                                    throws java.lang.Exception
Returns the properties for the given application name. Case insensitive

Parameters:
appName - application name, for example "SwingSet"
Throws:
java.lang.Exception

getPropertiesMap

public java.util.HashMap getPropertiesMap()
Returns a map of all loaded application configurations

Returns:
HashMap


Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.