org.jboss.remoting
Interface ServerInvocationHandler

All Known Implementing Classes:
MarshallerLoaderHandler, ServerInterceptorChain

public interface ServerInvocationHandler

ServerInvocationHandler is the server side (remote) end handler which is registered for a given ServerInvoker implementation. The ServerInvocationHandler does the actual implementation work of invoking the method on the target object in the remote VM. The ServerInvoker will then handle marshalling and returning the results via the appropriate transport back to the client invoker.

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

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
 

Method Detail

setMBeanServer

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

Parameters:
server -

setInvoker

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

Parameters:
invoker -

invoke

public Object invoke(InvocationRequest invocation)
              throws Throwable
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.

Parameters:
invocation -
Returns:
Throws:
Throwable

addListener

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

Parameters:
callbackHandler -

removeListener

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

Parameters:
callbackHandler -


Copyright © 2004 JBoss Inc. All Rights Reserved.