public class ChameleonConfiguration extends HashMap<String,String>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ChameleonConfiguration(File baseDirectory) |
Modifier and Type | Method and Description |
---|---|
String |
get(String key,
String defaultValue) |
File |
getBaseDirectory() |
boolean |
getBoolean(String key,
boolean defaultValue) |
File |
getDirectory(String key,
boolean create) |
File |
getFile(String key,
boolean create) |
int |
getInt(String key,
int defaultValue) |
File |
getRelativeFile(String path) |
void |
initFrameworkConfiguration() |
boolean |
isInteractiveModeEnabled() |
void |
loadChameleonProperties() |
void |
loadSystemProperties()
Loads system properties.
|
void |
setInteractiveModeEnabled(boolean interactiveModeEnabled) |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public ChameleonConfiguration(File baseDirectory)
public void loadChameleonProperties() throws IOException
IOException
public boolean getBoolean(String key, boolean defaultValue)
public int getInt(String key, int defaultValue)
public void initFrameworkConfiguration()
public void loadSystemProperties() throws IOException
IOException
- if the system.properties file cannot be read.public File getBaseDirectory()
public boolean isInteractiveModeEnabled()
public void setInteractiveModeEnabled(boolean interactiveModeEnabled)
Copyright © 2009–2013 OW2 Chameleon. All rights reserved.