org.jboss.cache
Class TreeCacheProxy

java.lang.Object
  extended byorg.jboss.cache.TreeCacheProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, java.io.Serializable

public class TreeCacheProxy
extends java.lang.Object
implements java.io.Serializable, java.lang.reflect.InvocationHandler

Simple Remoting-based proxy that can be downloaded (via JNDI) into the client's address space. Uses java.lang.reflect.Proxy to handle all method calls, and uses remoteURI (identifies the server) and targetObject (identifies the target MBean on the server side) to dispatch requests using Remoting

See Also:
Serialized Form

Constructor Summary
TreeCacheProxy(java.lang.String remoteURI, ObjectName (src)  targetObject)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCacheProxy

public TreeCacheProxy(java.lang.String remoteURI,
                      ObjectName (src)  targetObject)
Method Detail

invoke

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