ch.elca.dependency.util
Class DefaultPropertiesReader

java.lang.Object
  |
  +--ch.elca.dependency.util.DefaultPropertiesReader
All Implemented Interfaces:
PropertiesReader

public class DefaultPropertiesReader
extends java.lang.Object
implements PropertiesReader

The class DefaultPropertiesReader is used to read the default properties. Such "default" properties are store in files and packed together with the Dependency Tool in one jar file.

Version:
1.0-beta
Author:
Pawel Kowalski

Constructor Summary
DefaultPropertiesReader()
           
 
Method Summary
 java.util.Properties getProperties(java.lang.String propertiesName)
          Get the named Properties.
 java.io.InputStream getPropertiesAsStream(java.lang.String propertiesName)
          Get the named properties as a Stream.
 java.net.URL getResource(java.lang.String name)
          Get the URL of a resource.
static DefaultPropertiesReader singleton()
          Get the one and only instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPropertiesReader

public DefaultPropertiesReader()
Method Detail

singleton

public static DefaultPropertiesReader singleton()
Get the one and only instance of this class.

Returns:
a DefaultPropertiesReader value

getPropertiesAsStream

public java.io.InputStream getPropertiesAsStream(java.lang.String propertiesName)
Get the named properties as a Stream.

Specified by:
getPropertiesAsStream in interface PropertiesReader
Parameters:
propertiesName - a String value
Returns:
an InputStream value

getProperties

public java.util.Properties getProperties(java.lang.String propertiesName)
Get the named Properties.

Specified by:
getProperties in interface PropertiesReader
Parameters:
propertiesName - a String value
Returns:
a Properties value

getResource

public java.net.URL getResource(java.lang.String name)
Get the URL of a resource.

Parameters:
name - a String value
Returns:
an URL value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.