net.sf.cantina.application
Class Config

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended bynet.sf.cantina.application.Config
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Config
extends java.util.Hashtable

cantina.properties configuration.

Author:
Stephane JAIS
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
static java.lang.String DS_TYPE
          This setting determines which datasource will be used by the system, Valid values are a class name that implements DataSource
protected static java.util.Properties properties
           
 
Constructor Summary
Config()
           
 
Method Summary
protected static boolean getBoolean(java.lang.String paramName)
          Helper method that returns true for "true" and "yes"
protected static java.lang.String getString(java.lang.String paramName)
          Get a config setting
protected static java.util.Properties loadProperties(java.net.URL url)
          Loads properties stored in a file.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DS_TYPE

public static final java.lang.String DS_TYPE
This setting determines which datasource will be used by the system, Valid values are a class name that implements DataSource

See Also:
Constant Field Values

properties

protected static java.util.Properties properties
Constructor Detail

Config

public Config()
Method Detail

loadProperties

protected static java.util.Properties loadProperties(java.net.URL url)
Loads properties stored in a file.

Parameters:
url - The url to the file
Returns:
The Properties object.

getString

protected static java.lang.String getString(java.lang.String paramName)
Get a config setting

Parameters:
paramName - The setting's name
Returns:
The value

getBoolean

protected static boolean getBoolean(java.lang.String paramName)
Helper method that returns true for "true" and "yes"



Copyright © 2004 Cantina. All Rights Reserved.