com.buglabs.osgi.shell.commands.core
Class OSGiProp

java.lang.Object
  extended by com.buglabs.osgi.shell.pub.AbstractCommand
      extended by com.buglabs.osgi.shell.commands.core.OSGiProp
All Implemented Interfaces:
ICommand

public class OSGiProp
extends AbstractCommand

Print OSGi property values that are exposed with BundleContext.getProperty().


Field Summary
 
Fields inherited from class com.buglabs.osgi.shell.pub.AbstractCommand
arguments, context, err, out, outWriter
 
Constructor Summary
OSGiProp()
           
 
Method Summary
 void execute()
          Execute the command
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getUsage()
           
 boolean isValid()
           
 
Methods inherited from class com.buglabs.osgi.shell.pub.AbstractCommand
initialize, printError, println, setDefaultFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiProp

public OSGiProp()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Description copied from interface: ICommand
Execute the command

Throws:
java.lang.Exception

isValid

public boolean isValid()
Specified by:
isValid in interface ICommand
Overrides:
isValid in class AbstractCommand
Returns:
true if the command and parameters are valid.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ICommand
Overrides:
getDescription in class AbstractCommand
Returns:
A description of what the command does.

getUsage

public java.lang.String getUsage()
Specified by:
getUsage in interface ICommand
Overrides:
getUsage in class AbstractCommand
Returns:
A short textual description of command usage.

getName

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