cz.cuni.amis.utils.configuration
Class PropertyProvider

Package class diagram package PropertyProvider
java.lang.Object
  extended by cz.cuni.amis.utils.configuration.PropertyProvider
All Implemented Interfaces:
Comparable<PropertyProvider>
Direct Known Subclasses:
AbstractPropertiesProvider, EnvironmentVariableProvider, JVMOptionsProvider

public abstract class PropertyProvider
extends Object
implements Comparable<PropertyProvider>

Property provider is responsible for one type of property storage. Eg. some specific file.

Author:
ik

Constructor Summary
PropertyProvider()
           
 
Method Summary
 int compareTo(PropertyProvider o)
           
abstract  int getPriority()
          Priority of this provider.
abstract  String getProperty(String key)
          Searches for given property key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyProvider

public PropertyProvider()
Method Detail

getPriority

public abstract int getPriority()
Priority of this provider. It will be asked for property value before all providers with lower priority.

Returns:

getProperty

public abstract String getProperty(String key)
Searches for given property key.

Parameters:
key -
Returns:
null if the property wasn't found

compareTo

public int compareTo(PropertyProvider o)
Specified by:
compareTo in interface Comparable<PropertyProvider>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.