Interface RemoteMethodExecutor

All Superinterfaces:
Remote
All Known Implementing Classes:
RemoteMethodExecutorImpl

public interface RemoteMethodExecutor extends 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
    execute(String methodName, Class<?>[] parametersType, Object[] args)
    Acts like an InvocationHandler.
  • Method Details

    • execute

      Object execute(String methodName, Class<?>[] parametersType, Object[] args) throws 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:
      RemoteException - for any error. Business exceptions will be wrapped.