org.exolab.jms.net.proxy
Class Proxy
java.lang.Object
|
+--org.exolab.jms.net.proxy.Proxy
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class Proxy
- extends java.lang.Object
- implements java.io.Serializable
The Proxy
class is the common superclass for client proxies to
remote objects.
- Version:
- $Revision: 1.2 $ $Date: 2005/11/16 12:32:50 $
- Author:
- Tim Anderson
- See Also:
Delegate
, Serialized Form
Constructor Summary |
protected |
Proxy(Delegate delegate)
Construct a new Proxy |
Method Summary |
void |
disposeProxy()
Dispose this proxy, releasing any allocated resources. |
protected java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object[] args,
long methodID)
Invoke a remote method via the delegate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Proxy
protected Proxy(Delegate delegate)
- Construct a new
Proxy
- Parameters:
delegate
- the delegate used to perform invocations
disposeProxy
public void disposeProxy()
- Dispose this proxy, releasing any allocated resources.
It is an error to invoke any method other than this, after the proxy
has been disposed.
invoke
protected java.lang.Object invoke(java.lang.reflect.Method method,
java.lang.Object[] args,
long methodID)
throws java.lang.Throwable
- Invoke a remote method via the delegate
- Parameters:
method
- the method to invokeargs
- the arguments to supply to the methodmethodID
- a unique identifier for the method- Returns:
- the object returned by the remote method
- Throws:
java.lang.Throwable
- for any error
Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.