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.Object execute​(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.RemoteException
      Acts like an InvocationHandler.
      Parameters:
      methodName - name of the method to invoke
      parametersType - parameters type to reliably identify the method
      args - 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.