Tea Java Runtime API
Version 3.2.2

com.pdmfc.tea.modules.tos
Class SJavaMethod

java.lang.Object
  extended bycom.pdmfc.tea.modules.tos.SJavaMethod
All Implemented Interfaces:
SObjFunction

public class SJavaMethod
extends java.lang.Object
implements SObjFunction


Constructor Summary
SJavaMethod(java.lang.Class javaClass, java.lang.String javaMethodName)
           
SJavaMethod(java.lang.reflect.Method javaMethod)
           
 
Method Summary
 java.lang.Object exec(SObjFunction obj, SContext context, java.lang.Object[] args)
          Executes the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SJavaMethod

public SJavaMethod(java.lang.Class javaClass,
                   java.lang.String javaMethodName)

SJavaMethod

public SJavaMethod(java.lang.reflect.Method javaMethod)
Method Detail

exec

public java.lang.Object exec(SObjFunction obj,
                             SContext context,
                             java.lang.Object[] args)
                      throws STeaException
Description copied from interface: SObjFunction
Executes the command.

Specified by:
exec in interface SObjFunction
Parameters:
obj - The SObjFunction that led to call this function. Most of the time is the same as the this object.
context - The context where the command should be executed.
args - Array with the arguments passed to the command.
Returns:
An Object object.
Throws:
STeaException - Thrown if there were problems executing the command.

Tea Java Runtime API
Version 3.2.2

© 2007 PDM&FC, All Rights Reserved.