接口 RemoteInvocationExecutor
- 所有已知实现类:
DefaultRemoteInvocationExecutor
public interface RemoteInvocationExecutor
Strategy interface for executing aRemoteInvocation
on a target object.Used by
RmiServiceExporter
(for RMI invokers) and byHttpInvokerServiceExporter
.- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
- 另请参阅:
DefaultRemoteInvocationFactory
,RemoteInvocationBasedExporter.setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor)
,RemoteInvocationBasedExporter.setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor)
方法详细资料
invoke
Object invoke(RemoteInvocation invocation, Object targetObject) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
Perform this invocation on the given target object. Typically called when a RemoteInvocation is received on the server.- 参数:
invocation
- the RemoteInvocationtargetObject
- the target object to apply the invocation to- 返回:
- the invocation result
- 抛出:
NoSuchMethodException
- if the method name could not be resolvedIllegalAccessException
- if the method could not be accessedInvocationTargetException
- if the method invocation resulted in an exception- 另请参阅:
Method.invoke(java.lang.Object, java.lang.Object...)