cz.cuni.amis.utils.configuration
Class PropertyProvider
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyProvider
public PropertyProvider()
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 © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.