org.springframework.remoting.rmi
Class RmiInvocationWrapper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RmiInvocationWrapper
public RmiInvocationWrapper(Object wrappedObject,
RmiServiceExporter rmiServiceExporter)
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:
NoSuchMethodException
- if the method name could not be resolved
RemoteException
- in case of communication errors
IllegalAccessException
- if the method could not be accessed
InvocationTargetException
- if the method invocation resulted in an exception- See Also:
RmiClientInterceptor
Copyright (C) 2003-2004 The Spring Framework Project.