springs.agent
Class AgentCaller

java.lang.Object
  |
  +--springs.agent.AgentCaller

public class AgentCaller
extends java.lang.Object

A class that invokes methods on agents.

Author:
Sergio Ilarri Artigas

Constructor Summary
AgentCaller()
           
 
Method Summary
static java.lang.Object callAgentMethod(java.lang.Object agent, java.lang.String methodName, java.lang.Object[] args)
          This method invokes a method of the agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentCaller

public AgentCaller()
Method Detail

callAgentMethod

public static java.lang.Object callAgentMethod(java.lang.Object agent,
                                               java.lang.String methodName,
                                               java.lang.Object[] args)
                                        throws MethodCallException
This method invokes a method of the agent.

Parameters:
agent - the agent.
methodName - the name of the method.
args - the arguments to the method.
Returns:
the result of the method invocation.
Throws:
MethodCallException - if the invocation fails.
See Also:
MethodCallException, String, Object