| Constructor and Description |
|---|
Framework(File base)
Create a instance of this framework in the given base directory
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
disableDebug(File directory)
Disable the OSGI framework's debug logging
|
abstract void |
enableDebug(File directory)
Enable the OSGi framework's debug logging
|
List<String> |
getConfig()
Access the contents of the etc/config.properties file
|
abstract String |
getName()
Get the underlying OSGi framework name
|
protected List<String> |
readPropertyFile(File config) |
protected void |
removeConfigProperty(String key)
Remove an existing key from the etc/config.properties file
|
protected void |
saveConfigProperties() |
protected void |
setConfigProperty(String key,
String value)
Set a new key and value in the etc/config.properties - if the given key
already exists, the existing value will be overwritten
|
public Framework(File base)
base - the base directorypublic abstract String getName()
public abstract void enableDebug(File directory) throws IOException
directory - the directory containing the Karaf installationIOException - when a problem occurs configuring debug settingspublic abstract void disableDebug(File directory) throws IOException
directory - the Karaf base installation directoryIOException - when a problem occurs removing debug configuration settingsprotected void saveConfigProperties()
throws IOException
IOExceptionprotected List<String> readPropertyFile(File config) throws IOException
IOExceptionprotected void setConfigProperty(String key, String value) throws IOException
key - property keyvalue - property valueIOException - if the etc/config.properties file can not be readprotected void removeConfigProperty(String key) throws IOException
key - the keyIOException - if the etc/config.properties file can not be readpublic List<String> getConfig() throws IOException
IOException - if the etc/config.properties file can not be readCopyright © 2007-2014 FuseSource, Corp.. All Rights Reserved.