01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.connectivity;
08:
09: /**
10: * Invokes the method for an instance mapped to a specific handle.
11: *
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: */
14: public interface Invoker {
15: /**
16: * Invokes a specific method on the object mapped to the role specified.
17: *
18: * @param handle the handle to the implementation class (class name, mapped name, UUID etc.)
19: * @param methodName the name of the method
20: * @param paramTypes the parameter types
21: * @param args the arguments to the method
22: * @param context the context with the users principal and credentials
23: * @return the result from the invocation
24: */
25: public Object invoke(final String handle, final String methodName,
26: final Class[] paramTypes, final Object[] args,
27: final Object context);
28: }
|