|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.karaf.shell.dev.framework.Framework
public abstract class Framework
Class to represent the underlying OSGi framework
Constructor Summary | |
---|---|
Framework(java.io.File base)
Create a instance of this framework in the given base directory |
Method Summary | |
---|---|
abstract void |
disableDebug(java.io.File directory)
Disable the OSGI framework's debug logging |
abstract void |
enableDebug(java.io.File directory)
Enable the OSGi framework's debug logging |
java.util.List<java.lang.String> |
getConfig()
Access the contents of the etc/config.properties file |
abstract java.lang.String |
getName()
Get the underlying OSGi framework name |
protected java.util.List<java.lang.String> |
readPropertyFile(java.io.File config)
|
protected void |
removeConfigProperty(java.lang.String key)
Remove an existing key from the etc/config.properties file |
protected void |
saveConfigProperties()
|
protected void |
setConfigProperty(java.lang.String key,
java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Framework(java.io.File base)
base
- the base directoryMethod Detail |
---|
public abstract java.lang.String getName()
public abstract void enableDebug(java.io.File directory) throws java.io.IOException
directory
- the directory containing the Karaf installation
java.io.IOException
- when a problem occurs configuring debug settingspublic abstract void disableDebug(java.io.File directory) throws java.io.IOException
directory
- the Karaf base installation directory
java.io.IOException
- when a problem occurs removing debug configuration settingsprotected void saveConfigProperties() throws java.io.IOException
java.io.IOException
protected java.util.List<java.lang.String> readPropertyFile(java.io.File config) throws java.io.IOException
java.io.IOException
protected void setConfigProperty(java.lang.String key, java.lang.String value) throws java.io.IOException
key
- property keyvalue
- property value
java.io.IOException
- if the etc/config.properties file can not be readprotected void removeConfigProperty(java.lang.String key) throws java.io.IOException
key
- the key
java.io.IOException
- if the etc/config.properties file can not be readpublic java.util.List<java.lang.String> getConfig() throws java.io.IOException
java.io.IOException
- if the etc/config.properties file can not be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |