org.tigris.eyebrowse
Class Eyebrowse

java.lang.Object
  |
  +--org.tigris.eyebrowse.Eyebrowse

public class Eyebrowse
extends java.lang.Object

Supplies application configuration information. This class will eventually replace the eyebrowse Perl script.

Since:
1.1
Author:
Daniel Rall

Field Summary
protected static java.lang.String PROPERTY_NAMESPACE
          The namespace under which all Eyebrowse properties are stored.
 
Constructor Summary
Eyebrowse()
           
 
Method Summary
static java.util.Properties getConfiguration()
          Loads the configuration from the first properties file found in the run-time classpath.
static java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
          Retrieves the value for the named property, looking first in the System properties for an override.
static void main(java.lang.String[] args)
           
static void setConfigurationPath(java.lang.String resourcePath)
          Sets the name of the configuration file to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_NAMESPACE

protected static final java.lang.String PROPERTY_NAMESPACE
The namespace under which all Eyebrowse properties are stored.
Constructor Detail

Eyebrowse

public Eyebrowse()
Method Detail

getConfiguration

public static java.util.Properties getConfiguration()
Loads the configuration from the first properties file found in the run-time classpath.
See Also:
getProperty(String, String), setConfigurationPath(String)

getProperty

public static java.lang.String getProperty(java.lang.String name,
                                           java.lang.String defaultValue)
Retrieves the value for the named property, looking first in the System properties for an override.
Parameters:
name - The name of the property to retrieve. It will have PROPERTY_NAMESPACE prepended to it to scope it to the Eyebrowse namespace.
defaultValue - The default value for the property to retrieve, used when the configuration is null or the named property does not have a value.

setConfigurationPath

public static void setConfigurationPath(java.lang.String resourcePath)
Sets the name of the configuration file to use. The file defaults to eyebrowse.properties.
Parameters:
resourcePath - The path to the configuration, loaded from the classpath as a resource.

main

public static void main(java.lang.String[] args)


Copyright © 2000 Quiotix Corp. All Rights Reserved.