接口 RmiInvocationHandler
- 所有超级接口:
Remote
public interface RmiInvocationHandler extends Remote
Interface for RMI invocation handlers instances on the server, wrapping exported services. A client uses a stub implementing this interface to access such a service.This is an SPI interface, not to be used directly by applications.
- 从以下版本开始:
- 14.05.2003
- 作者:
- Juergen Hoeller
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
方法详细资料
getTargetInterfaceName
String getTargetInterfaceName() throws RemoteException
Return the name of the target interface that this invoker operates on.- 返回:
- the name of the target interface, or
null
if none - 抛出:
RemoteException
- in case of communication errors- 另请参阅:
RemoteExporter.getServiceInterface()
invoke
Object invoke(RemoteInvocation invocation) throws RemoteException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
Apply the given invocation to the target object.Called by
RmiClientInterceptor.doInvoke(org.aopalliance.intercept.MethodInvocation, RmiInvocationHandler)
.- 参数:
invocation
- object that encapsulates invocation parameters- 返回:
- the object returned from the invoked method, if any
- 抛出:
RemoteException
- 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