org.springframework.remoting.rmi
Class RmiInvocationWrapper

java.lang.Object
  extended byorg.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, RmiServiceExporter rmiServiceExporter)
           
 
Method Summary
 Object invoke(RemoteInvocation invocation)
          Apply the given invocation to the target object.
 
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,
                            RmiServiceExporter rmiServiceExporter)
Method Detail

invoke

public Object invoke(RemoteInvocation invocation)
              throws RemoteException,
                     NoSuchMethodException,
                     IllegalAccessException,
                     InvocationTargetException
Description copied from interface: RmiInvocationHandler
Apply the given invocation to the target object. Called by RmiClientInterceptor.

Specified by:
invoke in interface RmiInvocationHandler
Parameters:
invocation - object that encapsulates invocation parameters
Returns:
the object returned from the invoked method, if any
Throws:
InvocationTargetException - if the method invocation resulted in an exception
RemoteException - in case of communication errors
NoSuchMethodException - if the method name could not be resolved
IllegalAccessException - if the method could not be accessed
See Also:
RmiClientInterceptor


Copyright (C) 2003-2004 The Spring Framework Project.