KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > aspectwerkz > connectivity > Invoker


1 /**************************************************************************************
2  * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of the LGPL license *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  **************************************************************************************/

8 package org.codehaus.aspectwerkz.connectivity;
9
10 /**
11  * Invokes the method for an instance mapped to a specific handle.
12  *
13  * @author <a HREF="mailto:jboner@codehaus.org">Jonas Bonér </a>
14  */

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

26     public Object JavaDoc invoke(final String JavaDoc handle,
27                          final String JavaDoc methodName,
28                          final Class JavaDoc[] paramTypes,
29                          final Object JavaDoc[] args,
30                          final Object JavaDoc context);
31 }
Popular Tags