fr.umlv.corosol.component
Interface JMethodInvoker

All Superinterfaces:
JObject, JVMComponent
All Known Implementing Classes:
DefaultJMethodInvoker, RealJMethodInvoker, VerboseJMethodInvoker, VerboseRealJMethodInvoker

public interface JMethodInvoker
extends JVMComponent

An object of the JMethodInvoker interface represents a execution manager of a method (i.e. a fr.umlv.corosol.component.JMethod).

Author:
Christophe Deleray
See Also:
JMethod

Method Summary
 void invokeConstructor(JConstructor constructor, JThread thread)
          Invokes the specified constructor into the specified thread.
 void invokeMethod(JMethod method, JThread thread)
          Invokes the specified method into the specified thread.
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
configure, getComponentClass, replace
 

Method Detail

invokeMethod

void invokeMethod(JMethod method,
                  JThread thread)
                  throws java.lang.Exception
Invokes the specified method into the specified thread.

Parameters:
method - the method to be invoked
thread - a thread
Throws:
java.lang.Exception - if the executed method throws an exception

invokeConstructor

void invokeConstructor(JConstructor constructor,
                       JThread thread)
                       throws java.lang.Exception
Invokes the specified constructor into the specified thread.

Parameters:
constructor - the constructor to be invoked
thread - a thread
Throws:
java.lang.Exception - if the executed method throws an exception