mx4j.server.interceptor
Class DefaultMBeanServerInterceptor
java.lang.Object
|
+--mx4j.server.interceptor.DefaultMBeanServerInterceptor
- All Implemented Interfaces:
- DefaultMBeanServerInterceptorMBean, MBeanServerInterceptor
- Direct Known Subclasses:
- ContextClassLoaderMBeanServerInterceptor, InvokerMBeanServerInterceptor, NotificationListenerMBeanServerInterceptor, SecurityMBeanServerInterceptor
- public abstract class DefaultMBeanServerInterceptor
- extends java.lang.Object
- implements MBeanServerInterceptor, DefaultMBeanServerInterceptorMBean
Base class for MBeanServer interceptors
- Version:
- $Revision: 1.4 $
- 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)
|
protected Logger |
getLogger()
|
MBeanInfo |
getMBeanInfo(MBeanMetaData metadata)
|
protected MBeanServerInterceptor |
getNext()
|
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)
|
boolean |
isEnabled()
Returns whether this interceptor is enabled |
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)
|
void |
setEnabled(boolean enabled)
Enables or disables this interceptor |
void |
setNext(MBeanServerInterceptor next)
Sets the next interceptor in the chain |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMBeanServerInterceptor
public DefaultMBeanServerInterceptor()
isEnabled
public boolean isEnabled()
- Description copied from interface:
DefaultMBeanServerInterceptorMBean
- Returns whether this interceptor is enabled
- Specified by:
isEnabled
in interface DefaultMBeanServerInterceptorMBean
setEnabled
public void setEnabled(boolean enabled)
- Description copied from interface:
DefaultMBeanServerInterceptorMBean
- Enables or disables this interceptor
- Specified by:
setEnabled
in interface DefaultMBeanServerInterceptorMBean
setNext
public void setNext(MBeanServerInterceptor next)
- Description copied from interface:
MBeanServerInterceptor
- Sets the next interceptor in the chain
- Specified by:
setNext
in interface MBeanServerInterceptor
getNext
protected MBeanServerInterceptor getNext()
getLogger
protected Logger getLogger()
addNotificationListener
public void addNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
- Specified by:
addNotificationListener
in interface MBeanServerInterceptor
removeNotificationListener
public void removeNotificationListener(MBeanMetaData metadata,
NotificationListener listener,
NotificationFilter filter,
java.lang.Object handback)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface MBeanServerInterceptor
instantiate
public void instantiate(MBeanMetaData metadata,
java.lang.String className,
java.lang.String[] params,
java.lang.Object[] args)
throws ReflectionException,
MBeanException
- Specified by:
instantiate
in interface MBeanServerInterceptor
registration
public void registration(MBeanMetaData metadata,
int operation)
throws MBeanRegistrationException
- Specified by:
registration
in interface MBeanServerInterceptor
getMBeanInfo
public MBeanInfo getMBeanInfo(MBeanMetaData metadata)
- Specified by:
getMBeanInfo
in interface MBeanServerInterceptor
invoke
public java.lang.Object invoke(MBeanMetaData metadata,
java.lang.String method,
java.lang.String[] params,
java.lang.Object[] args)
throws MBeanException,
ReflectionException
- Specified by:
invoke
in interface MBeanServerInterceptor
getAttributes
public AttributeList getAttributes(MBeanMetaData metadata,
java.lang.String[] attributes)
- Specified by:
getAttributes
in interface MBeanServerInterceptor
setAttributes
public AttributeList setAttributes(MBeanMetaData metadata,
AttributeList attributes)
- Specified by:
setAttributes
in interface MBeanServerInterceptor
getAttribute
public java.lang.Object getAttribute(MBeanMetaData metadata,
java.lang.String attribute)
throws MBeanException,
AttributeNotFoundException,
ReflectionException
- Specified by:
getAttribute
in interface MBeanServerInterceptor
setAttribute
public void setAttribute(MBeanMetaData metadata,
Attribute attribute)
throws MBeanException,
AttributeNotFoundException,
InvalidAttributeValueException,
ReflectionException
- Specified by:
setAttribute
in interface MBeanServerInterceptor