org.apache.karaf.shell.config
Class EditCommand

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.console.OsgiCommandSupport
          extended by org.apache.karaf.shell.config.ConfigCommandSupport
              extended by org.apache.karaf.shell.config.EditCommand
All Implemented Interfaces:
Action, BundleContextAware

public class EditCommand
extends ConfigCommandSupport


Field Summary
 
Fields inherited from class org.apache.karaf.shell.config.ConfigCommandSupport
PROPERTY_CONFIG_PID, PROPERTY_CONFIG_PROPS
 
Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
bundleContext, usedReferences
 
Fields inherited from class org.apache.karaf.shell.console.AbstractAction
log, session
 
Constructor Summary
EditCommand()
           
 
Method Summary
protected  void doExecute(org.osgi.service.cm.ConfigurationAdmin admin)
           
 org.osgi.service.cm.Configuration findConfigurationByFileName(org.osgi.service.cm.ConfigurationAdmin admin, java.lang.String fileName)
           Returns the Configuration object of the given (felix fileinstall) file name.
 java.io.File getStorage()
           
 void setStorage(java.io.File storage)
           
 
Methods inherited from class org.apache.karaf.shell.config.ConfigCommandSupport
doExecute, getEditedProps
 
Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport
execute, getAllServices, getBundleContext, getService, setBundleContext, ungetServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditCommand

public EditCommand()
Method Detail

doExecute

protected void doExecute(org.osgi.service.cm.ConfigurationAdmin admin)
                  throws Exception
Specified by:
doExecute in class ConfigCommandSupport
Throws:
Exception

findConfigurationByFileName

public org.osgi.service.cm.Configuration findConfigurationByFileName(org.osgi.service.cm.ConfigurationAdmin admin,
                                                                     java.lang.String fileName)
                                                              throws java.io.IOException,
                                                                     org.osgi.framework.InvalidSyntaxException

Returns the Configuration object of the given (felix fileinstall) file name.

Parameters:
fileName -
Returns:
Throws:
java.io.IOException
org.osgi.framework.InvalidSyntaxException

getStorage

public java.io.File getStorage()

setStorage

public void setStorage(java.io.File storage)


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