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