za.org.coefficient.invokers.webapp
Class WebAppInvoker

java.lang.Object
  extended by za.org.coefficient.invokers.base.BaseInvoker
      extended by za.org.coefficient.invokers.webapp.WebAppInvoker
All Implemented Interfaces:
za.co.csir.icomtek.workflow.interfaces.WorkflowModuleInvoker, Invoker

public class WebAppInvoker
extends BaseInvoker

This is an implementation of invoker. This allows us to invoke methods on modules, services, and themes within a webapp enviroment and to obtain useful reference to them.

Version:
$Revision: 1.2 $ $Date: 2004/11/09 13:52:11 $
Author:
Dylan Etkin

Constructor Summary
WebAppInvoker()
           
 
Method Summary
protected  ModuleLocal getModule(java.lang.String moduleName)
           
 java.lang.Object getService(java.lang.String serviceName)
          NOTE: this method can only be used by those in the same class loader as the requested service.
protected  ThemeLocalIf getTheme(java.lang.String themeName)
           
 
Methods inherited from class za.org.coefficient.invokers.base.BaseInvoker
invoke, invokeGetterOnModule, invokeMethodOnModule, invokeMethodOnService, invokeMethodOnTheme, invokeOpOnModule, invokeOpOnModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppInvoker

public WebAppInvoker()
Method Detail

getService

public java.lang.Object getService(java.lang.String serviceName)
                            throws java.lang.Exception
NOTE: this method can only be used by those in the same class loader as the requested service. This is because this returns an EJB created through a local interface, not a remote interface.

Specified by:
getService in interface Invoker
Specified by:
getService in class BaseInvoker
Parameters:
serviceName - is the service available in the system
Returns:
is the service that was requested
Throws:
java.lang.Exception

getTheme

protected ThemeLocalIf getTheme(java.lang.String themeName)
                         throws java.lang.Exception
Specified by:
getTheme in class BaseInvoker
Throws:
java.lang.Exception

getModule

protected ModuleLocal getModule(java.lang.String moduleName)
                         throws java.lang.Exception
Specified by:
getModule in class BaseInvoker
Throws:
java.lang.Exception


Copyright CSIR. All Rights Reserved.