net.sf.tlc.core
Interface PropertyManager

All Known Implementing Classes:
DefaultPropertyManager

public interface PropertyManager

TheLittleContainer PropertyManager Interface

Author:
aisrael

Method Summary
 java.util.Properties getProperties()
          Return all the properties managed by this property manager.
 java.lang.String getProperty(java.lang.String key)
          Attempt to retrieve a container-level property
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Attempt to retrieve a container-level property, returing the given defaultValue if the key is not found.
 

Method Detail

getProperties

public java.util.Properties getProperties()
Return all the properties managed by this property manager.

Returns:
Properties

getProperty

public java.lang.String getProperty(java.lang.String key)
Attempt to retrieve a container-level property

Parameters:
key - The property key
Returns:
The property value

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Attempt to retrieve a container-level property, returing the given defaultValue if the key is not found.

Parameters:
key - The property key
defaultValue - The value to return if the property is not found
Returns:
The found value


Copyright © 2005 TheLittleContainer. All Rights Reserved.