mx4j.server.interceptor
Class ContextClassLoaderMBeanServerInterceptor
java.lang.Object
|
+--mx4j.server.interceptor.DefaultMBeanServerInterceptor
|
+--mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor
- All Implemented Interfaces:
- DefaultMBeanServerInterceptorMBean, MBeanServerInterceptor
- 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.5 $
- Author:
- Simone Bordet
Method Summary |
void |
addNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
|
java.lang.Object |
getAttribute(MBeanMetaData metadata,
java.lang.String attribute)
|
AttributeList |
getAttributes(MBeanMetaData metadata,
java.lang.String[] attributes)
|
MBeanInfo |
getMBeanInfo(MBeanMetaData metadata)
|
java.lang.String |
getType()
Returns the type of this interceptor |
void |
instantiate(MBeanMetaData metadata,
java.lang.String className,
java.lang.String[] params,
java.lang.Object[] args)
|
java.lang.Object |
invoke(MBeanMetaData metadata,
java.lang.String method,
java.lang.String[] params,
java.lang.Object[] args)
|
void |
registration(MBeanMetaData metadata,
int operation)
|
void |
removeNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
|
void |
setAttribute(MBeanMetaData metadata,
Attribute attribute)
|
AttributeList |
setAttributes(MBeanMetaData metadata,
AttributeList attributes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextClassLoaderMBeanServerInterceptor
public ContextClassLoaderMBeanServerInterceptor()
getType
public java.lang.String getType()
- Description copied from class:
DefaultMBeanServerInterceptor
- Returns the type of this interceptor
- Overrides:
getType
in class DefaultMBeanServerInterceptor
addNotificationListener
public void addNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
- Overrides:
addNotificationListener
in class DefaultMBeanServerInterceptor
removeNotificationListener
public void removeNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
throws ListenerNotFoundException
- Overrides:
removeNotificationListener
in class DefaultMBeanServerInterceptor
instantiate
public void instantiate(MBeanMetaData metadata,
java.lang.String className,
java.lang.String[] params,
java.lang.Object[] args)
throws ReflectionException,
MBeanException
- Overrides:
instantiate
in class DefaultMBeanServerInterceptor
registration
public void registration(MBeanMetaData metadata,
int operation)
throws MBeanRegistrationException
- Overrides:
registration
in class DefaultMBeanServerInterceptor
getMBeanInfo
public MBeanInfo getMBeanInfo(MBeanMetaData metadata)
- Overrides:
getMBeanInfo
in class DefaultMBeanServerInterceptor
invoke
public java.lang.Object invoke(MBeanMetaData metadata,
java.lang.String method,
java.lang.String[] params,
java.lang.Object[] args)
throws MBeanException,
ReflectionException
- Overrides:
invoke
in class DefaultMBeanServerInterceptor
getAttributes
public AttributeList getAttributes(MBeanMetaData metadata,
java.lang.String[] attributes)
- Overrides:
getAttributes
in class DefaultMBeanServerInterceptor
setAttributes
public AttributeList setAttributes(MBeanMetaData metadata,
AttributeList attributes)
- Overrides:
setAttributes
in class DefaultMBeanServerInterceptor
getAttribute
public java.lang.Object getAttribute(MBeanMetaData metadata,
java.lang.String attribute)
throws MBeanException,
AttributeNotFoundException,
ReflectionException
- Overrides:
getAttribute
in class DefaultMBeanServerInterceptor
setAttribute
public void setAttribute(MBeanMetaData metadata,
Attribute attribute)
throws MBeanException,
AttributeNotFoundException,
InvalidAttributeValueException,
ReflectionException
- Overrides:
setAttribute
in class DefaultMBeanServerInterceptor
Copyright © 2001-2002 MX4J Team. All Rights Reserved.