站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

RmiInvocationWrapper (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.remoting.rmi
Class RmiInvocationWrapper

java.lang.Object
  extended by org.springframework.remoting.rmi.RmiInvocationWrapper
All Implemented Interfaces:
Remote, RmiInvocationHandler

 class RmiInvocationWrapper
extends Object
implements RmiInvocationHandler

Server-side implementation of RmiInvocationHandler. An instance of this class exists for each remote object. Automatically created by RmiServiceExporter for non-RMI service implementations.

This is an SPI class, not to be used directly by applications.

Since:
14.05.2003
Author:
Juergen Hoeller
See Also:
RmiServiceExporter

Constructor Summary
RmiInvocationWrapper(Object wrappedObject, RmiBasedExporter rmiExporter)
          Create a new RmiInvocationWrapper for the given object
 
Method Summary
 Object invoke(RemoteInvocation invocation)
          Delegates the actual invocation handling to the RMI exporter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiInvocationWrapper

public RmiInvocationWrapper(Object wrappedObject,
                            RmiBasedExporter rmiExporter)
Create a new RmiInvocationWrapper for the given object

Parameters:
wrappedObject - the object to wrap with an RmiInvocationHandler
rmiExporter - the RMI exporter to handle the actual invocation
Method Detail

invoke

public Object invoke(RemoteInvocation invocation)
              throws RemoteException,
                     NoSuchMethodException,
                     IllegalAccessException,
                     InvocationTargetException
Delegates the actual invocation handling to the RMI exporter.

Specified by:
invoke in interface RmiInvocationHandler
Parameters:
invocation - object that encapsulates invocation parameters
Returns:
the object returned from the invoked method, if any
Throws:
RemoteException - in case of communication errors
NoSuchMethodException - if the method name could not be resolved
IllegalAccessException - if the method could not be accessed
InvocationTargetException - if the method invocation resulted in an exception
See Also:
RmiBasedExporter.invoke(org.springframework.remoting.support.RemoteInvocation, Object)


Copyright (c) 2002-2007 The Spring Framework Project.