com.retek.commons.util
Class ConfigUtils

java.lang.Object
  extended bycom.retek.commons.util.ConfigUtils

public class ConfigUtils
extends java.lang.Object


Constructor Summary
ConfigUtils()
           
 
Method Summary
static java.lang.String getConfig(java.lang.Class bundleOwner, java.lang.String bundleFileName, java.lang.String key)
          Loads a config setting from a bundle in the same package as a given bundle-owning class.
static java.lang.String getConfig(java.lang.String bundle, java.lang.String key)
          Loads a config setting from a properties file or other resource bundle.
static java.lang.String getConfigOptional(java.lang.Class bundleOwner, java.lang.String bundleFileName, java.lang.String key)
          Loads a config setting from a bundle in the same package as a given bundle-owning class.
static java.lang.String getConfigOptional(java.lang.String bundle, java.lang.String key)
          Loads a config setting from a properties file or other resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigUtils

public ConfigUtils()
Method Detail

getConfig

public static java.lang.String getConfig(java.lang.String bundle,
                                         java.lang.String key)
Loads a config setting from a properties file or other resource bundle. Throws an exception if the config file or the key is missing.


getConfigOptional

public static java.lang.String getConfigOptional(java.lang.String bundle,
                                                 java.lang.String key)
Loads a config setting from a properties file or other resource bundle. Returns null if the bundle or the key is missing.


getConfig

public static java.lang.String getConfig(java.lang.Class bundleOwner,
                                         java.lang.String bundleFileName,
                                         java.lang.String key)
Loads a config setting from a bundle in the same package as a given bundle-owning class. Throws an exception if the config file or the key is missing.


getConfigOptional

public static java.lang.String getConfigOptional(java.lang.Class bundleOwner,
                                                 java.lang.String bundleFileName,
                                                 java.lang.String key)
Loads a config setting from a bundle in the same package as a given bundle-owning class. Returns null if the bundle or the key is missing.



Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28