|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object za.org.coefficient.invokers.base.BaseInvoker
public abstract class BaseInvoker
This is an abstract base class that provides most of the funtionality an invoker requires. This allows us to invoke methods on modules, services, and themes without specifiying the methods that know about the environment.
Field Summary | |
---|---|
private static java.lang.String |
CREATE
|
private static java.lang.String |
LOCAL
|
Constructor Summary | |
---|---|
BaseInvoker()
|
Method Summary | |
---|---|
protected abstract ModuleLocal |
getModule(java.lang.String module)
|
abstract java.lang.Object |
getService(java.lang.String serviceName)
This method returns a reference to the named service. |
protected abstract ThemeLocalIf |
getTheme(java.lang.String theme)
|
java.lang.Object |
invoke(CoefficientContext ctx)
This method will look for a request parameter named module and one named op and will try to fire that operation on the module. |
java.lang.Object |
invokeGetterOnModule(java.lang.String module,
java.lang.String method)
This method will invoke the named getter on the named module and return the result |
java.lang.Object |
invokeMethodOnModule(java.lang.String module,
java.lang.String method,
java.lang.Object[] paramVals)
This method will invoke the named method on the named module with the parameters provided in the incomming object array and return the result |
java.lang.Object |
invokeMethodOnService(java.lang.String serviceName,
java.lang.String method,
java.lang.Object[] paramVals)
This method will invoke the named method on the named service with the parameters provided in the incomming object array and return the result |
java.lang.Object |
invokeMethodOnTheme(java.lang.String theme,
java.lang.String method,
java.lang.Object[] paramVals)
This method is used to invoke methods on a system service that must be a theme. |
java.lang.Object |
invokeOpOnModule(java.lang.String module,
java.lang.String operation,
CoefficientContext ctx)
This method will invoke the named operation on the named module with the given context as a parameter |
java.lang.Object |
invokeOpOnModule(java.lang.String module,
java.lang.String operation,
za.co.csir.icomtek.workflow.interfaces.WorkflowContext ctx)
NOTE: This is bad and is only done to give the workflow some autonomy This method will invoke the named operation on the named module with the given a workflow context which is a CoefficientContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String CREATE
private static final java.lang.String LOCAL
Constructor Detail |
---|
public BaseInvoker()
Method Detail |
---|
public java.lang.Object invoke(CoefficientContext ctx) throws java.lang.Exception
invoke
in interface Invoker
java.lang.Exception
public java.lang.Object invokeGetterOnModule(java.lang.String module, java.lang.String method) throws java.lang.Exception
Invoker
invokeGetterOnModule
in interface Invoker
module
- names a module in the systemmethod
- names the getter on the module
java.lang.Exception
public java.lang.Object invokeMethodOnModule(java.lang.String module, java.lang.String method, java.lang.Object[] paramVals) throws java.lang.Exception
Invoker
invokeMethodOnModule
in interface Invoker
module
- names a module available in the systemmethod
- names the method on the moduleparamVals
- contains the parameters for the method invoke
java.lang.Exception
public java.lang.Object invokeMethodOnService(java.lang.String serviceName, java.lang.String method, java.lang.Object[] paramVals) throws java.lang.Exception
Invoker
invokeMethodOnService
in interface Invoker
method
- names the method on the serviceparamVals
- contains the parameters for the method invoke
java.lang.Exception
public java.lang.Object invokeOpOnModule(java.lang.String module, java.lang.String operation, CoefficientContext ctx) throws java.lang.Exception
invokeOpOnModule
in interface Invoker
module
- names a module in the systemoperation
- names the method to invoke on the modulectx
- is the coefficient context to be passed to the module
java.lang.Exception
public java.lang.Object invokeOpOnModule(java.lang.String module, java.lang.String operation, za.co.csir.icomtek.workflow.interfaces.WorkflowContext ctx) throws java.lang.Exception
invokeOpOnModule
in interface za.co.csir.icomtek.workflow.interfaces.WorkflowModuleInvoker
invokeOpOnModule
in interface Invoker
java.lang.Exception
public java.lang.Object invokeMethodOnTheme(java.lang.String theme, java.lang.String method, java.lang.Object[] paramVals) throws java.lang.Exception
Invoker
invokeMethodOnTheme
in interface Invoker
theme
- names a theme available in the system, this must be a
thememethod
- names the method on the serviceparamVals
- contains the parameters for the method invoke
java.lang.Exception
public abstract java.lang.Object getService(java.lang.String serviceName) throws java.lang.Exception
Invoker
getService
in interface Invoker
serviceName
- is the service available in the system
java.lang.Exception
protected abstract ThemeLocalIf getTheme(java.lang.String theme) throws java.lang.Exception
java.lang.Exception
protected abstract ModuleLocal getModule(java.lang.String module) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |