com.metamatrix.platform.config.util
Class CurrentConfigHelper

java.lang.Object
  extended by 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

Constructor Summary
protected CurrentConfigHelper()
          Constructor for CurrentConfigHelper.
 
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
 

Constructor Detail

CurrentConfigHelper

protected CurrentConfigHelper()
Constructor for CurrentConfigHelper.

Method Detail

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 null
    path - can optionally specify the path seperate from the fileName
    principal - 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.