public class RemoteMethodExecutorImpl<T> extends Object implements RemoteMethodExecutor
| Modifier and Type | Field and Description |
|---|---|
protected T |
service
The target service on which calls will be made
|
| Constructor and Description |
|---|
RemoteMethodExecutorImpl(T service)
This is the only available constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(String methodName,
Class<?>[] parametersType,
Object[] args)
Acts like an InvocationHandler.
|
protected T service
public RemoteMethodExecutorImpl(T service)
service - the mandatory service which calls will be delegated onpublic Object execute(String methodName, Class<?>[] parametersType, Object[] args) throws RemoteException
RemoteMethodExecutorexecute in interface RemoteMethodExecutormethodName - name of the method to invokeparametersType - parameters type to reliably identify the methodargs - method arguments to process the effective callRemoteException - for any error. Business exceptions will be
wrapped.Copyright © 2004–2020 CodeLutin. All rights reserved.