net.sf.tlc.core.impl
Class DefaultPropertyManager

java.lang.Object
  extended bynet.sf.tlc.core.impl.DefaultPropertyManager
All Implemented Interfaces:
PropertyManager

public final class DefaultPropertyManager
extends java.lang.Object
implements PropertyManager

The default implementation of PropertyManager

Author:
aisrael

Constructor Summary
DefaultPropertyManager(java.io.File file)
           
DefaultPropertyManager(java.lang.String propertyFile)
           
 
Method Summary
 java.util.Properties getProperties()
          (non-Javadoc)
 java.lang.String getProperty(java.lang.String key)
          (non-Javadoc)
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPropertyManager

public DefaultPropertyManager(java.io.File file)
Parameters:
file - File

DefaultPropertyManager

public DefaultPropertyManager(java.lang.String propertyFile)
Parameters:
propertyFile - String
Method Detail

getProperties

public java.util.Properties getProperties()
(non-Javadoc)

Specified by:
getProperties in interface PropertyManager
Returns:
Properties
See Also:
PropertyManager.getProperties()

getProperty

public java.lang.String getProperty(java.lang.String key)
(non-Javadoc)

Specified by:
getProperty in interface PropertyManager
Parameters:
key - The property key
Returns:
The property value
See Also:
PropertyManager.getProperty(java.lang.String)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
(non-Javadoc)

Specified by:
getProperty in interface PropertyManager
Parameters:
key - The property key
defaultValue - The value to return if the property is not found
Returns:
The found value
See Also:
PropertyManager.getProperty(java.lang.String, java.lang.String)


Copyright © 2005 TheLittleContainer. All Rights Reserved.