za.org.coefficient.invokers.ejb
Class EjbInvoker
java.lang.Object
za.org.coefficient.invokers.base.BaseInvoker
za.org.coefficient.invokers.ejb.EjbInvoker
- All Implemented Interfaces:
- za.co.csir.icomtek.workflow.interfaces.WorkflowModuleInvoker, Invoker
public class EjbInvoker
- extends BaseInvoker
This is an implementation of invoker. This allows us to invoke methods on
modules, services, and themes within an EJB enviroment and to obtain useful
reference to them.
- Version:
- $Revision: 1.4 $ $Date: 2004/11/09 13:52:11 $
- Author:
- Dylan Etkin
Field Summary |
private static java.lang.String |
CREATE
|
private static java.lang.String |
LOCAL
|
Method Summary |
protected ModuleLocal |
getModule(java.lang.String module)
|
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 theme)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATE
private static final java.lang.String CREATE
- See Also:
- Constant Field Values
LOCAL
private static final java.lang.String LOCAL
- See Also:
- Constant Field Values
EjbInvoker
public EjbInvoker()
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 theme)
throws java.lang.Exception
- Specified by:
getTheme
in class BaseInvoker
- Throws:
java.lang.Exception
getModule
protected ModuleLocal getModule(java.lang.String module)
throws java.lang.Exception
- Specified by:
getModule
in class BaseInvoker
- Throws:
java.lang.Exception
Copyright CSIR. All Rights Reserved.