org.jboss.mx.remoting
Class JMXSubsystemInvocationHandler

java.lang.Object
  extended byorg.jboss.mx.remoting.JMXSubsystemInvocationHandler
All Implemented Interfaces:
ServerInvocationHandler (src)

public class JMXSubsystemInvocationHandler
extends java.lang.Object
implements ServerInvocationHandler (src)

JMXSubsystemInvocationHandler is a ServerInvocationHandler that will forward requests to the MBeanServer and return the results from the MBeanServer.


Constructor Summary
JMXSubsystemInvocationHandler()
           
 
Method Summary
 void addListener(InvokerCallbackHandler (src)  callbackHandler)
          Adds a callback handler that will listen for callbacks from the server invoker handler.
 void destroy()
          method is called to destroy the handler and remove all pending notifications and listeners from the notification cache
protected  void finalize()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXSubsystemInvocationHandler

public JMXSubsystemInvocationHandler()
Method Detail

setInvoker

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

Specified by:
setInvoker in interface ServerInvocationHandler (src)
Parameters:
invoker -

setMBeanServer

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

Specified by:
setMBeanServer in interface ServerInvocationHandler (src)
Parameters:
server -

destroy

public void destroy()
method is called to destroy the handler and remove all pending notifications and listeners from the notification cache


finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

invoke

public java.lang.Object invoke(InvocationRequest (src)  invocation)
                        throws java.lang.Throwable
Description copied from interface: ServerInvocationHandler (src)
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 (src)
Parameters:
invocation -
Returns:
Throws:
java.lang.Throwable

addListener

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

Specified by:
addListener in interface ServerInvocationHandler (src)
Parameters:
callbackHandler -

removeListener

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

Specified by:
removeListener in interface ServerInvocationHandler (src)
Parameters:
callbackHandler -