org.ow2.bonita.facade.interceptor
Class EJBCommandAPIInterceptor

java.lang.Object
  extended by org.ow2.bonita.facade.interceptor.EJBCommandAPIInterceptor
All Implemented Interfaces:
CommandAPI

public class EJBCommandAPIInterceptor
extends java.lang.Object
implements CommandAPI


Constructor Summary
EJBCommandAPIInterceptor(CommandAPI api)
           
 
Method Summary
<T> T
execute(Command<T> command)
          Executes a command deployed at common level or one available in bonita distribution.
<T> T
execute(Command<T> command, ProcessDefinitionUUID processUUID)
          Executes a command deployed at package level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBCommandAPIInterceptor

public EJBCommandAPIInterceptor(CommandAPI api)
Method Detail

execute

public <T> T execute(Command<T> command)
          throws java.lang.Exception
Description copied from interface: CommandAPI
Executes a command deployed at common level or one available in bonita distribution.

Specified by:
execute in interface CommandAPI
Parameters:
command - Command to execute
Returns:
the result of the command
Throws:
java.lang.Exception - if an exception occurs during the command execution

execute

public <T> T execute(Command<T> command,
                     ProcessDefinitionUUID processUUID)
          throws java.lang.Exception
Description copied from interface: CommandAPI
Executes a command deployed at package level.

Specified by:
execute in interface CommandAPI
Parameters:
command - Command to execute
processUUID - UUID of the package in which the command was deployed (result of bar deployment)
Returns:
the result of the command
Throws:
java.lang.Exception - if an exception occurs during the command execution


Copyright © 2009 OW2 Consortium. All Rights Reserved.