com.buglabs.osgi.shell
Interface ICommand

All Known Implementing Classes:
AbstractCommand, Bundles, GC, OBR, Package

public interface ICommand

A command interface for the Bug Labs OSGi shell.


Method Summary
 void execute()
          Execute the command
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getUsage()
           
 void initialize(java.util.List arguments, java.io.OutputStream out, java.io.OutputStream err, BundleContext context)
          Command initialization.
 boolean isValid()
           
 

Method Detail

initialize

void initialize(java.util.List arguments,
                java.io.OutputStream out,
                java.io.OutputStream err,
                BundleContext context)
Command initialization.

Parameters:
arguments -
out -
err -
context -

execute

void execute()
             throws java.lang.Exception
Execute the command

Throws:
java.lang.Exception

isValid

boolean isValid()
Returns:
true if the command and parameters are valid.

getName

java.lang.String getName()
Returns:
Name of command.

getUsage

java.lang.String getUsage()
Returns:
A short textual description of command usage.

getDescription

java.lang.String getDescription()
Returns:
A description of what the command does.