Package org.nuiton.util.rmi
Interface RemoteMethodExecutor
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
RemoteMethodExecutorImpl
public interface RemoteMethodExecutor
extends java.rmi.Remote
This class will act as an InvocationHandler except that it is distributed.
- Author:
- Arnaud Thimel - thimel@codelutin.com
-
Method Summary
Modifier and Type Method Description java.lang.Objectexecute(java.lang.String methodName, java.lang.Class<?>[] parametersType, java.lang.Object[] args)Acts like an InvocationHandler.
-
Method Details
-
execute
java.lang.Object execute(java.lang.String methodName, java.lang.Class<?>[] parametersType, java.lang.Object[] args) throws java.rmi.RemoteExceptionActs like an InvocationHandler.- Parameters:
methodName- name of the method to invokeparametersType- parameters type to reliably identify the methodargs- method arguments to process the effective call- Returns:
- the result of the delegate method
- Throws:
java.rmi.RemoteException- for any error. Business exceptions will be wrapped.
-