org.apache.karaf.shell.config
Class ConfigCommandSupport

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
All Implemented Interfaces:
Action, BundleContextAware
Direct Known Subclasses:
CancelCommand, EditCommand, ListCommand, PropAppendCommand, PropDelCommand, PropListCommand, PropSetCommand, UpdateCommand

public abstract class ConfigCommandSupport
extends OsgiCommandSupport

Abstract class from which all commands related to the ConfigurationAdmin service should derive. This command retrieves a reference to the ConfigurationAdmin service before calling another method to actually process the command.


Field Summary
static java.lang.String PROPERTY_CONFIG_PID
           
static java.lang.String 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
ConfigCommandSupport()
           
 
Method Summary
protected  java.lang.Object doExecute()
           
protected abstract  void doExecute(org.osgi.service.cm.ConfigurationAdmin admin)
           
protected  java.util.Dictionary 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
 

Field Detail

PROPERTY_CONFIG_PID

public static final java.lang.String PROPERTY_CONFIG_PID
See Also:
Constant Field Values

PROPERTY_CONFIG_PROPS

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

ConfigCommandSupport

public ConfigCommandSupport()
Method Detail

doExecute

protected java.lang.Object doExecute()
                              throws Exception
Specified by:
doExecute in class AbstractAction
Throws:
Exception

getEditedProps

protected java.util.Dictionary getEditedProps()
                                       throws Exception
Throws:
Exception

doExecute

protected abstract void doExecute(org.osgi.service.cm.ConfigurationAdmin admin)
                           throws Exception
Throws:
Exception


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