org.jboss.remoting
Interface ServerInvocationHandler

All Known Implementing Classes:
JMXSubsystemInvocationHandler (src) , MarshallerLoaderHandler (src) , ServerInterceptorChain (src) , TreeCacheInvocationHandler (src)

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.


Method Summary
 void addListener(InvokerCallbackHandler (src)  callbackHandler)
          Adds a callback handler that will listen for callbacks from the server invoker handler.
 java.lang.Object invoke(InvocationRequest (src)  invocation)
          called to handle a specific invocation.
 void removeListener(InvokerCallbackHandler (src)  callbackHandler)
          Removes the callback handler that was listening for callbacks from the server invoker handler.
 void setInvoker(ServerInvoker (src)  invoker)
          set the invoker that owns this handler
 void setMBeanServer(MBeanServer (src)  server)
          set the mbean server that the handler can reference
 

Method Detail

setMBeanServer

public void setMBeanServer(MBeanServer (src)  server)
set the mbean server that the handler can reference

Parameters:
server -

setInvoker

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

Parameters:
invoker -

invoke

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

addListener

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

Parameters:
callbackHandler -

removeListener

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

Parameters:
callbackHandler -