Skip navigation links


com.essbase.eas.utils
Class PropertyManager

java.lang.Object
  extended by com.essbase.eas.utils.PropertyManager


public class PropertyManager
extends java.lang.Object

Implements a property file management facility. Notes:

06/07/2001, hcox: Changed to not pay attention to "category" ... all property files are stored in EAS_HOME/eas now.

Version:
1.01, 06/07/2001
Author:
Madhavi Bolisetty

Method Summary
static void clear()
          empties the collection of property sets.
static java.lang.String getPropertyFilePath(java.lang.String fn)
           
static java.util.Properties getPropertySet(java.lang.String category, java.lang.String key)
          Alternative signature method for getPropertySet
static java.util.Properties getPropertySet(java.lang.String category, java.lang.String key, boolean readOnly)
          retrieves a property.
static void removePropertySet(java.lang.String category, java.lang.String key)
          removes a property set from the collection
static boolean savePropertySet(java.lang.String category, java.lang.String key)
          saves a single read/write property set back to its file.
static void savePropertySets()
          saves all of the read/write property sets back to their files.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getPropertySet

public static java.util.Properties getPropertySet(java.lang.String category,
                                                  java.lang.String key,
                                                  boolean readOnly)
retrieves a property. Searches the existing collection of property sets, returning a matching one if possible; otherwise, create a new property set entry and return it.

getPropertySet

public static java.util.Properties getPropertySet(java.lang.String category,
                                                  java.lang.String key)
Alternative signature method for getPropertySet

savePropertySets

public static void savePropertySets()
saves all of the read/write property sets back to their files.

savePropertySet

public static boolean savePropertySet(java.lang.String category,
                                      java.lang.String key)
saves a single read/write property set back to its file.

removePropertySet

public static void removePropertySet(java.lang.String category,
                                     java.lang.String key)
removes a property set from the collection

clear

public static void clear()
empties the collection of property sets.

getPropertyFilePath

public static java.lang.String getPropertyFilePath(java.lang.String fn)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.