org.jboss.remoting
Class ServerInvocationHandlerWrapper

java.lang.Object
  extended by org.jboss.remoting.ServerInvocationHandlerWrapper
All Implemented Interfaces:
ServerInvocationHandler

public class ServerInvocationHandlerWrapper
extends java.lang.Object
implements ServerInvocationHandler

A ServerInvocationHandlerWrapper is used to wrap an MBean proxy that implements org.jboss.remoting.ServerInvocationHandler. If necessary, each call will go through an AccessController.doPrivileged() call.

Version:
$Revision: 1.1 $

Copyright May 4, 2008

Author:
Ron Sigal

Constructor Summary
ServerInvocationHandlerWrapper(ServerInvocationHandler proxy)
           
 
Method Summary
 void addListener(InvokerCallbackHandler callbackHandler)
          Adds a callback handler that will listen for callbacks from the server invoker handler.
 java.lang.Object invoke(InvocationRequest invocation)
          called to handle a specific invocation.
 void removeListener(InvokerCallbackHandler callbackHandler)
          Removes the callback handler that was listening for callbacks from the server invoker handler.
 void setInvoker(ServerInvoker invoker)
          set the invoker that owns this handler
 void setMBeanServer(javax.management.MBeanServer server)
          set the mbean server that the handler can reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.remoting.ServerInvocationHandler
toString
 

Constructor Detail

ServerInvocationHandlerWrapper

public ServerInvocationHandlerWrapper(ServerInvocationHandler proxy)
Method Detail

addListener

public void addListener(InvokerCallbackHandler callbackHandler)
Description copied from interface: ServerInvocationHandler
Adds a callback handler that will listen for callbacks from the server invoker handler.

Specified by:
addListener in interface ServerInvocationHandler

invoke

public java.lang.Object invoke(InvocationRequest invocation)
                        throws java.lang.Throwable
Description copied from interface: ServerInvocationHandler
called to handle a specific invocation. Please take care to make sure implementations are thread safe and can, and often will, receive concurrent calls on this method.

Specified by:
invoke in interface ServerInvocationHandler
Returns:
Throws:
java.lang.Throwable

removeListener

public void removeListener(InvokerCallbackHandler callbackHandler)
Description copied from interface: ServerInvocationHandler
Removes the callback handler that was listening for callbacks from the server invoker handler.

Specified by:
removeListener in interface ServerInvocationHandler

setInvoker

public void setInvoker(ServerInvoker invoker)
Description copied from interface: ServerInvocationHandler
set the invoker that owns this handler

Specified by:
setInvoker in interface ServerInvocationHandler

setMBeanServer

public void setMBeanServer(javax.management.MBeanServer server)
Description copied from interface: ServerInvocationHandler
set the mbean server that the handler can reference

Specified by:
setMBeanServer in interface ServerInvocationHandler


Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.