01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.aspectwerkz.connectivity;
05:
06: /**
07: * Invokes the method for an instance mapped to a specific handle.
08: *
09: * @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 invoke(final String handle, final String methodName,
23: final Class[] paramTypes, final Object[] args,
24: final Object context);
25: }
|