org.exolab.jms.net.proxy
Interface Delegate

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
UnicastDelegate

public interface Delegate
extends java.io.Serializable

The Delegate interface supports the invocation of remote methods over arbitrary transport protocols.

Version:
$Revision: 1.2 $ $Date: 2005/11/16 12:32:50 $
Author:
Tim Anderson
See Also:
Proxy

Method Summary
 void dispose()
          Dispose the delegate, releasing any resources.
 java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object[] args, long methodID)
          Invoke a method.
 

Method Detail

invoke

java.lang.Object invoke(java.lang.reflect.Method method,
                        java.lang.Object[] args,
                        long methodID)
                        throws java.lang.Throwable
Invoke a method.

Parameters:
method - the method to invoke
args - the arguments to pass
methodID - the unique identifier for the method
Returns:
the result of the invocation
Throws:
java.lang.Throwable - for any error

dispose

void dispose()
Dispose the delegate, releasing any resources.

It is an error to invoke any method other than this, after the delegate has been disposed.



Copyright © 1999-2012 The OpenJMS Group. All Rights Reserved.