org.apache.karaf.shell.dev.framework
Class Felix

java.lang.Object
  extended by org.apache.karaf.shell.dev.framework.Framework
      extended by org.apache.karaf.shell.dev.framework.Felix

public class Felix
extends Framework

Represents Apache Felix as the underlying OSGi platform


Field Summary
static java.lang.String NAME
           
 
Constructor Summary
Felix(java.io.File base)
          Create a instance of Karaf running with Felix in the given base directory
 
Method Summary
 void disableDebug(java.io.File directory)
          Disable the OSGI framework's debug logging
 void enableDebug(java.io.File directory)
          Enable the OSGi framework's debug logging
 java.lang.String getName()
          Get the underlying OSGi framework name
 
Methods inherited from class org.apache.karaf.shell.dev.framework.Framework
getConfig, readPropertyFile, removeConfigProperty, saveConfigProperties, setConfigProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

Felix

public Felix(java.io.File base)
Create a instance of Karaf running with Felix in the given base directory

Parameters:
base - the base directory
Method Detail

getName

public java.lang.String getName()
Description copied from class: Framework
Get the underlying OSGi framework name

Specified by:
getName in class Framework

enableDebug

public void enableDebug(java.io.File directory)
                 throws java.io.IOException
Description copied from class: Framework
Enable the OSGi framework's debug logging

Specified by:
enableDebug in class Framework
Parameters:
directory - the directory containing the Karaf installation
Throws:
java.io.IOException - when a problem occurs configuring debug settings

disableDebug

public void disableDebug(java.io.File directory)
                  throws java.io.IOException
Description copied from class: Framework
Disable the OSGI framework's debug logging

Specified by:
disableDebug in class Framework
Parameters:
directory - the Karaf base installation directory
Throws:
java.io.IOException - when a problem occurs removing debug configuration settings


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.