soaprmi.server
Class RemoteWrapper

java.lang.Object
  extended bysoaprmi.server.RemoteWrapper
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class RemoteWrapper
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Special chaining InvocationHandler that mimics all interfaces of wrapped object and also creates internal port for remote references only if necessary.

Version:
$Revision: 1.4 $
Author:
Aleksander Slominski
See Also:
Services.wrapRemote

Constructor Summary
RemoteWrapper(java.lang.Object objectToWrap, java.lang.reflect.InvocationHandler invokerToChain)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] params)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteWrapper

public RemoteWrapper(java.lang.Object objectToWrap,
                     java.lang.reflect.InvocationHandler invokerToChain)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method m,
                               java.lang.Object[] params)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.