net.wgen.op
Interface OpExecutor

All Known Subinterfaces:
OpManager
All Known Implementing Classes:
DirectOpExecutor, EjbOpExecutor, OpManagerBean

public interface OpExecutor

Executes an Op in some context by either delegating the execution to some other OpExecutor (as in the EJB case), or by instantiating the appropriate CallExecutor and invoking the Op's internal _execute method itself. The executor will depend on the environment. In the default EJB setup, the EjbOpExecutor routes the Op to an EJB-bound OpExecutor (OpManagerBean) and that OpManagerBean uses a DirectOpExecutor to execute it within EJB.

Version:
$Id: OpExecutor.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.

Method Summary
 Op executeOp(Op op)
          Execute an Op.
 

Method Detail

executeOp

public Op executeOp(Op op)
             throws OpException,
                    java.rmi.RemoteException
Execute an Op.

Parameters:
op - the op to execute
Returns:
the Op, which if operating locally will be the same Op that went in, but if executed thru EJB the returned Op will not be the same exact object, as EJB is call-by-value.
Throws:
OpException - if there's some exception during local op execution
java.rmi.RemoteException - if there's some exception in the remote environment