站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

ControllerCommand - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.command
Class ControllerCommand

java.lang.Object
  extended byorg.jboss.portal.server.invocation.Invocation
      extended byorg.jboss.portal.core.command.ControllerCommand
Direct Known Subclasses:
PortalObjectCommand, StreamContentCommand

public abstract class ControllerCommand
extends Invocation

A controller command.


Field Summary
protected  CommandContext context
          The context of the command.
 
Constructor Summary
protected ControllerCommand()
           
 
Method Summary
 void create()
          Setup state before invocation.
 void destroy()
          Destroy state after invocation.
protected  void dispatch()
          Dispatch the call to the target.
abstract  void execute()
          Execute the command.
 CommandContext getContext()
           
abstract  CommandInfo getInfo()
          Return the meta data of this command.
 void setContext(CommandContext context)
           
 
Methods inherited from class org.jboss.portal.server.invocation.Invocation
getAttribute, invoke, invokeNext, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected CommandContext context
The context of the command.

Constructor Detail

ControllerCommand

protected ControllerCommand()
Method Detail

getInfo

public abstract CommandInfo getInfo()
Return the meta data of this command.


getContext

public CommandContext getContext()

setContext

public void setContext(CommandContext context)

create

public void create()
            throws InvocationException
Setup state before invocation.

Throws:
InvocationException

destroy

public void destroy()
Destroy state after invocation.


dispatch

protected void dispatch()
                 throws InvocationException,
                        InvocationRuntimeException
Description copied from class: Invocation
Dispatch the call to the target.

Specified by:
dispatch in class Invocation
Throws:
InvocationException
InvocationRuntimeException

execute

public abstract void execute()
                      throws InvocationException
Execute the command.

Throws:
InvocationException