org.springframework.remoting.rmi
Class RmiInvocationWrapper
java.lang.Object
org.springframework.remoting.rmi.RmiInvocationWrapper
- All Implemented Interfaces:
- java.rmi.Remote, RmiInvocationHandler
- class RmiInvocationWrapper
- extends java.lang.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
Method Summary |
java.lang.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 |
RmiInvocationWrapper
public RmiInvocationWrapper(java.lang.Object wrappedObject,
RmiServiceExporter rmiServiceExporter)
invoke
public java.lang.Object invoke(RemoteInvocation invocation)
throws java.rmi.RemoteException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.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:
java.rmi.RemoteException
- in case of communication errors
java.lang.IllegalAccessException
- if the method could not be accessed
java.lang.reflect.InvocationTargetException
- if the method invocation resulted in an exception
java.lang.NoSuchMethodException
- if the method name could not be resolved- See Also:
RmiClientInterceptor
Copyright (C) 2003-2004 The Spring Framework Project.