KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > connectivity > Invoker


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.connectivity;
5
6 /**
7  * Invokes the method for an instance mapped to a specific handle.
8  *
9  * @author <a HREF="mailto:jboner@codehaus.org">Jonas BonŽr </a>
10  */

11 public interface Invoker {
12   /**
13    * Invokes a specific method on the object mapped to the role specified.
14    *
15    * @param handle the handle to the implementation class (class name, mapped name, UUID etc.)
16    * @param methodName the name of the method
17    * @param paramTypes the parameter types
18    * @param args the arguments to the method
19    * @param context the context with the users principal and credentials
20    * @return the result from the invocation
21    */

22   public Object JavaDoc invoke(final String JavaDoc handle,
23                        final String JavaDoc methodName,
24                        final Class JavaDoc[] paramTypes,
25                        final Object JavaDoc[] args,
26                        final Object JavaDoc context);
27 }
Popular Tags