org.objectweb.dsrg.sofa.cushion
Class OsgiAction

java.lang.Object
  extended by org.objectweb.dsrg.sofa.cushion.OsgiAction
All Implemented Interfaces:
ActionInterface

public class OsgiAction
extends java.lang.Object
implements ActionInterface

Command 'osgi'

A helper command for developing OSGi-enabled components and interacting with the Framework.

Author:
Karel Masek

Field Summary
 
Fields inherited from interface org.objectweb.dsrg.sofa.cushion.ActionInterface
ACTION_ERROR, BAD_PARAMETERS, NOT_ENOUGH_PARAMETERS, SUCCESS, TOO_MANY_PARAMETERS
 
Constructor Summary
OsgiAction()
           
 
Method Summary
 int perform(java.lang.String[] args, java.io.PrintStream out)
          Performs the osgi command
 void printHelp(java.lang.StringBuffer msg)
          Puts help message into the buffer.
 void printUsage(java.lang.StringBuffer msg)
          Puts help message into the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiAction

public OsgiAction()
Method Detail

printHelp

public void printHelp(java.lang.StringBuffer msg)
Puts help message into the buffer.

Specified by:
printHelp in interface ActionInterface
Parameters:
msg - buffer for the message

printUsage

public void printUsage(java.lang.StringBuffer msg)
Puts help message into the buffer.

Specified by:
printUsage in interface ActionInterface
Parameters:
msg - buffer for the message

perform

public int perform(java.lang.String[] args,
                   java.io.PrintStream out)
Performs the osgi command

Specified by:
perform in interface ActionInterface
Parameters:
args - command arguments
out - output stream