org.nuiton.util.rmi
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

Method Summary
 Object execute(String methodName, Class<?>[] parametersType, Object[] args)
          Acts like an InvocationHandler.
 

Method Detail

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.


Copyright © 2004-2011 CodeLutin. All Rights Reserved.