DBVIEW
org.dbview.conf.Conf Class Reference
Collaboration diagram for org.dbview.conf.Conf:

List of all members.

Static Public Member Functions

static void init () throws Exception
static String get (String in_key) throws Exception

Static Private Attributes

static final String[] CONF_FILES = { "resources.properties" }
static Hashtable< String, String > __conf = new Hashtable<String, String>()
static Boolean ininialized = Boolean.FALSE

Detailed Description

This class contains the software's configuration.

Remarks:
Please note that the configuration is provided by an external files that contains "properties".
See also:
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/Properties.html
Author:
Denis BEURIVE

Definition at line 38 of file Conf.java.


Member Function Documentation

static String org.dbview.conf.Conf.get ( String  in_key) throws Exception [static]

This method returns the value of a given property.

Parameters:
in_keyName of the property to get.
Returns:
The method returns the value associated with the given property's name.
Exceptions:
Exception

Definition at line 98 of file Conf.java.

Referenced by org.dbview.addons.AddOnCatalog.AddOnCatalog(), and org.dbview.resources.SotfForeignKeyDetectorCatalog.SotfForeignKeyDetectorCatalog().

static void org.dbview.conf.Conf.init ( ) throws Exception [static]

This method initializes the configuration. This method loads all external configuration files and build the global configuration.

Exceptions:
Exception

Definition at line 60 of file Conf.java.

Referenced by org.dbview.conf.Conf.get().


Member Data Documentation

Hashtable<String, String> org.dbview.conf.Conf.__conf = new Hashtable<String, String>() [static, private]

This hash table contains the loaded configuration.

Definition at line 48 of file Conf.java.

Referenced by org.dbview.conf.Conf.get(), and org.dbview.conf.Conf.init().

final String [] org.dbview.conf.Conf.CONF_FILES = { "resources.properties" } [static, private]

This array contains the list of configuration external files to load.

Definition at line 43 of file Conf.java.

Referenced by org.dbview.conf.Conf.init().

Boolean org.dbview.conf.Conf.ininialized = Boolean.FALSE [static, private]

This flag indicates whether the configuration has been loaded or not.

Definition at line 53 of file Conf.java.

Referenced by org.dbview.conf.Conf.get(), and org.dbview.conf.Conf.init().


The documentation for this class was generated from the following file: