public abstract class BaseConfig extends Object
Constructor and Description |
---|
BaseConfig() |
Modifier and Type | Method and Description |
---|---|
protected String |
getPrefix(String key) |
protected abstract String |
getQualifier()
This method provides the qualifier used to distinquish this config
object in a properties file.
|
protected String |
getSuffix(String key) |
protected boolean |
isSupported(String key) |
void |
load(Map<String,String> props)
This method loads this class with the configuration provided in props.
|
protected abstract void |
loadProperty(String key,
String value)
This method handles loading the given key/value into its proper,
application-specific field.
|
public void load(Map<String,String> props)
props
- protected boolean isSupported(String key)
protected abstract String getQualifier()
protected abstract void loadProperty(String key, String value)
key
- value
- Copyright © 2009-2013 DuraSpace. All Rights Reserved.