org.fusesource.patch.commands
Class PatchCommandSupport

java.lang.Object
  extended by org.apache.karaf.shell.console.AbstractAction
      extended by org.apache.karaf.shell.console.OsgiCommandSupport
          extended by org.fusesource.patch.commands.PatchCommandSupport
All Implemented Interfaces:
org.apache.felix.gogo.commands.Action, org.apache.karaf.shell.console.BundleContextAware
Direct Known Subclasses:
Add, Install, List, Rollback, Simulate

public abstract class PatchCommandSupport
extends org.apache.karaf.shell.console.OsgiCommandSupport


Field Summary
protected  Service service
           
 
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
PatchCommandSupport()
           
 
Method Summary
protected  void display(java.lang.Iterable<Patch> patches, boolean listBundles)
           
protected  void display(Result result)
           
protected  java.lang.Object doExecute()
           
protected abstract  void doExecute(Service service)
           
 Service getService()
           
 void setService(Service service)
           
 
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

service

protected Service service
Constructor Detail

PatchCommandSupport

public PatchCommandSupport()
Method Detail

getService

public Service getService()

setService

public void setService(Service service)

doExecute

protected java.lang.Object doExecute()
                              throws java.lang.Exception
Specified by:
doExecute in class org.apache.karaf.shell.console.AbstractAction
Throws:
java.lang.Exception

doExecute

protected abstract void doExecute(Service service)
                           throws java.lang.Exception
Throws:
java.lang.Exception

display

protected void display(Result result)

display

protected void display(java.lang.Iterable<Patch> patches,
                       boolean listBundles)


Copyright © 2012 FuseSource. All Rights Reserved.