站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 console API Documentation 英文版文档

AbstractCommand (JBoss Console API) - JBoss 4.0.1 sp1 console API Documentation 英文版文档


org.jboss.console.twiddle.command
Class AbstractCommand

java.lang.Object
  extended byorg.jboss.console.twiddle.command.AbstractCommand
All Implemented Interfaces:
Cloneable, Command
Direct Known Subclasses:
MBeanServerCommand

public abstract class AbstractCommand
extends Object
implements Command

An abstract command.

Version:
$Revision: 1.6 $
Author:
Jason Dillon, Scott.Stark@jboss.org

Field Summary
protected  CommandContext context
           
protected  String desc
           
protected  org.jboss.logging.Logger log
           
protected  String name
           
 
Constructor Summary
protected AbstractCommand(String name, String desc)
           
 
Method Summary
 Object clone()
          Return a cloned copy of this command.
 String getDescription()
           
 String getName()
           
 void setCommandContext(CommandContext context)
           
 void unsetCommandContext()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.console.twiddle.command.Command
displayHelp, execute
 

Field Detail

log

protected org.jboss.logging.Logger log

desc

protected final String desc

name

protected final String name

context

protected CommandContext context
Constructor Detail

AbstractCommand

protected AbstractCommand(String name,
                          String desc)
Method Detail

getName

public String getName()
Specified by:
getName in interface Command

getDescription

public String getDescription()
Specified by:
getDescription in interface Command

setCommandContext

public void setCommandContext(CommandContext context)
Specified by:
setCommandContext in interface Command

unsetCommandContext

public void unsetCommandContext()
Specified by:
unsetCommandContext in interface Command

clone

public Object clone()
Return a cloned copy of this command.

Specified by:
clone in interface Command
Returns:
Cloned command.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.