org.apache.qpid.server.management
Class MBeanInvocationHandlerImpl

java.lang.Object
  extended by org.apache.qpid.server.management.MBeanInvocationHandlerImpl
All Implemented Interfaces:
InvocationHandler, EventListener, NotificationListener

public class MBeanInvocationHandlerImpl
extends Object
implements InvocationHandler, NotificationListener

This class can be used by the JMXConnectorServer as an InvocationHandler for the mbean operations. This implements the logic for allowing the users to invoke MBean operations and implements the restrictions for readOnly, readWrite and admin users.


Field Summary
static String ADMIN
           
static String READONLY
           
static String READWRITE
           
 
Constructor Summary
MBeanInvocationHandlerImpl()
           
 
Method Summary
 void handleNotification(Notification notification, Object handback)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
static MBeanServerForwarder newProxyInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMIN

public static final String ADMIN
See Also:
Constant Field Values

READWRITE

public static final String READWRITE
See Also:
Constant Field Values

READONLY

public static final String READONLY
See Also:
Constant Field Values
Constructor Detail

MBeanInvocationHandlerImpl

public MBeanInvocationHandlerImpl()
Method Detail

newProxyInstance

public static MBeanServerForwarder newProxyInstance()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

handleNotification

public void handleNotification(Notification notification,
                               Object handback)
Specified by:
handleNotification in interface NotificationListener


Licensed to the Apache Software Foundation