mx4j.server.interceptor

Class ContextClassLoaderMBeanServerInterceptor

public class ContextClassLoaderMBeanServerInterceptor extends DefaultMBeanServerInterceptor

This interceptor sets the context class loader to the proper value for incoming calls. It saves the current context class loader, set the context class loader to be the MBean's class loader for the current call, and on return re-set the context class loader to the previous value

Version: $Revision: 1.11 $

Constructor Summary
ContextClassLoaderMBeanServerInterceptor()
Method Summary
voidaddNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
ObjectgetAttribute(MBeanMetaData metadata, String attribute)
AttributeListgetAttributes(MBeanMetaData metadata, String[] attributes)
MBeanInfogetMBeanInfo(MBeanMetaData metadata)
StringgetType()
voidinstantiate(MBeanMetaData metadata, String className, String[] params, Object[] args)
Objectinvoke(MBeanMetaData metadata, String method, String[] params, Object[] args)
voidregistration(MBeanMetaData metadata, int operation)
voidremoveNotificationListener(MBeanMetaData metadata, NotificationListener listener)
voidremoveNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
voidsetAttribute(MBeanMetaData metadata, Attribute attribute)
AttributeListsetAttributes(MBeanMetaData metadata, AttributeList attributes)

Constructor Detail

ContextClassLoaderMBeanServerInterceptor

public ContextClassLoaderMBeanServerInterceptor()

Method Detail

addNotificationListener

public void addNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)

getAttribute

public Object getAttribute(MBeanMetaData metadata, String attribute)

getAttributes

public AttributeList getAttributes(MBeanMetaData metadata, String[] attributes)

getMBeanInfo

public MBeanInfo getMBeanInfo(MBeanMetaData metadata)

getType

public String getType()

instantiate

public void instantiate(MBeanMetaData metadata, String className, String[] params, Object[] args)

invoke

public Object invoke(MBeanMetaData metadata, String method, String[] params, Object[] args)

registration

public void registration(MBeanMetaData metadata, int operation)

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener)

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)

setAttribute

public void setAttribute(MBeanMetaData metadata, Attribute attribute)

setAttributes

public AttributeList setAttributes(MBeanMetaData metadata, AttributeList attributes)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.