cz.cuni.amis.utils.configuration.providers
Class AbstractPropertiesProvider

java.lang.Object
  extended by cz.cuni.amis.utils.configuration.PropertyProvider
      extended by cz.cuni.amis.utils.configuration.providers.AbstractPropertiesProvider
All Implemented Interfaces:
java.lang.Comparable<PropertyProvider>
Direct Known Subclasses:
PlatformPropertiesProvider, UT2004PropertiesProvider

public abstract class AbstractPropertiesProvider
extends PropertyProvider

Wrapper of java.util.Properties class.


Constructor Summary
AbstractPropertiesProvider(java.io.InputStream is, java.lang.String sourceDescription)
           
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Searches for given property key.
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.utils.configuration.PropertyProvider
compareTo, getPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPropertiesProvider

public AbstractPropertiesProvider(java.io.InputStream is,
                                  java.lang.String sourceDescription)
Parameters:
sourceDescription - human readable decription of resource from which the properties were read
is - Reader from which the Properties can be loaded.
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Description copied from class: PropertyProvider
Searches for given property key.

Specified by:
getProperty in class PropertyProvider
Returns:
null if the property wasn't found

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object