|
||||||||||
| 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(File base)
Create a instance of this framework in the given base directory |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Framework(File base)
base - the base directory| Method Detail |
|---|
public abstract String getName()
public abstract void enableDebug(File directory)
throws IOException
directory - the directory containing the Karaf installation
IOException - when a problem occurs configuring debug settings
public abstract void disableDebug(File directory)
throws IOException
directory - the Karaf base installation directory
IOException - when a problem occurs removing debug configuration settings
protected void saveConfigProperties()
throws IOException
IOException
protected List<String> readPropertyFile(File config)
throws IOException
IOException
protected void setConfigProperty(String key,
String value)
throws IOException
key - property keyvalue - property value
IOException - if the etc/config.properties file can not be read
protected void removeConfigProperty(String key)
throws IOException
key - the key
IOException - if the etc/config.properties file can not be read
public List<String> getConfig()
throws IOException
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 | |||||||||