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 invoke(final String handle,
27 final String methodName,
28 final Class[] paramTypes,
29 final Object[] args,
30 final Object context);
31 }