public interface RmiInvocationHandler extends Remote
This is an SPI interface, not to be used directly by applications.
Modifier and Type | Method and Description |
---|---|
String |
getTargetInterfaceName()
Return the name of the target interface that this invoker operates on.
|
Object |
invoke(RemoteInvocation invocation)
Apply the given invocation to the target object.
|
@Nullable String getTargetInterfaceName() throws RemoteException
null
if noneRemoteException
- in case of communication errorsRemoteExporter.getServiceInterface()
@Nullable Object invoke(RemoteInvocation invocation) throws RemoteException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
Called by
RmiClientInterceptor.doInvoke(org.aopalliance.intercept.MethodInvocation, RmiInvocationHandler)
.
invocation
- object that encapsulates invocation parametersRemoteException
- in case of communication errorsNoSuchMethodException
- if the method name could not be resolvedIllegalAccessException
- if the method could not be accessedInvocationTargetException
- if the method invocation resulted in an exception