org.jboss.remoting.transport.mock
Class MockServerInvocationHandler

java.lang.Object
  extended byorg.jboss.remoting.transport.mock.MockServerInvocationHandler
All Implemented Interfaces:
ServerInvocationHandler

public class MockServerInvocationHandler
extends Object
implements ServerInvocationHandler

MockServerInvocationHandler

Version:
$Revision: 1.11 $
Author:
Jeff Haynie, Tom Elrod

Constructor Summary
MockServerInvocationHandler()
           
 
Method Summary
 void addListener(InvokerCallbackHandler callbackHandler)
          Adds a callback handler that will listen for callbacks from the server invoker handler.
 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
 

Constructor Detail

MockServerInvocationHandler

public MockServerInvocationHandler()
Method Detail

setInvoker

public void setInvoker(ServerInvoker invoker)
set the invoker that owns this handler

Specified by:
setInvoker in interface ServerInvocationHandler
Parameters:
invoker -

setMBeanServer

public void setMBeanServer(javax.management.MBeanServer server)
set the mbean server that the handler can reference

Specified by:
setMBeanServer in interface ServerInvocationHandler
Parameters:
server -

invoke

public Object invoke(InvocationRequest invocation)
              throws Throwable
Description copied from interface: ServerInvocationHandler
called to handle a specific invocation

Specified by:
invoke in interface ServerInvocationHandler
Parameters:
invocation -
Returns:
Throws:
Throwable

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
Parameters:
callbackHandler -

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
Parameters:
callbackHandler -


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.