com.metamatrix.platform.config.util
Class CurrentConfigHelper
java.lang.Object
com.metamatrix.platform.config.util.CurrentConfigHelper
public class CurrentConfigHelper
- extends java.lang.Object
The CurrentConfigHelper is used to load a configuration into memory when a repository isn't available.
- Author:
- vanhalbert
Method Summary |
protected static void |
cleanModelFile(java.lang.String principal,
java.lang.String fileName,
java.lang.String path)
|
protected static java.util.Properties |
createProperties(java.lang.String fileName,
java.lang.String path)
|
protected static java.util.Properties |
createSystemProperties(java.lang.String fileName,
java.lang.String path)
|
static void |
deleteModel(ConfigurationID configID,
java.util.Properties props,
java.lang.String principal)
|
static void |
initConfig(java.lang.String fileName,
java.lang.String path,
java.lang.String principal)
init will do the following:
remove existing config_ns.xml file
set required system properties for CurrentConfiguration
reload CurrentConfiguration with new information from
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentConfigHelper
protected CurrentConfigHelper()
- Constructor for CurrentConfigHelper.
initConfig
public static void initConfig(java.lang.String fileName,
java.lang.String path,
java.lang.String principal)
throws java.lang.Exception
- init will do the following:
- remove existing config_ns.xml file
- set required system properties for CurrentConfiguration
-
- reload CurrentConfiguration with new information from
- Parameters:
fileName
- is the configuration file to use; if contains full path, set path to nullpath
- can optionally specify the path seperate from the fileNameprincipal
- is the user initializing configuration
- Throws:
java.lang.Exception
cleanModelFile
protected static void cleanModelFile(java.lang.String principal,
java.lang.String fileName,
java.lang.String path)
throws java.lang.Exception
- Throws:
java.lang.Exception
createSystemProperties
protected static java.util.Properties createSystemProperties(java.lang.String fileName,
java.lang.String path)
createProperties
protected static java.util.Properties createProperties(java.lang.String fileName,
java.lang.String path)
deleteModel
public static void deleteModel(ConfigurationID configID,
java.util.Properties props,
java.lang.String principal)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.