org.jboss.security.srp
Class SRPServerProxy

java.lang.Object
  extended byorg.jboss.security.srp.SRPServerProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, java.io.Serializable

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

A serializable proxy that is bound into JNDI with a reference to the RMI implementation of a SRPServerInterface. This allows a client to lookup the interface and not have the RMI stub for the server as it will be downloaded to them when the SRPServerProxy is unserialized.

See Also:
Serialized Form

Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          The InvocationHandler invoke method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
The InvocationHandler invoke method. All calls are simply delegated to the SRPServerInterface server object.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable