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.6 $
Author:
Simone Bordet

Fields inherited from interface mx4j.server.interceptor.MBeanServerInterceptor
POST_DEREGISTER, POST_REGISTER_FALSE, POST_REGISTER_TRUE, PRE_DEREGISTER, PRE_REGISTER
 
Constructor Summary
protected DefaultMBeanServerInterceptor()
           
 
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()
           
abstract  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)
           
 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 setChain(java.util.List chain)
           
 void setEnabled(boolean enabled)
          Enables or disables this interceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMBeanServerInterceptor

protected DefaultMBeanServerInterceptor()
Method Detail

isEnabled

public boolean isEnabled()
Returns whether this interceptor is enabled
Specified by:
isEnabled in interface DefaultMBeanServerInterceptorMBean
See Also:
setEnabled(boolean)

setEnabled

public void setEnabled(boolean enabled)
Enables or disables this interceptor
Specified by:
setEnabled in interface DefaultMBeanServerInterceptorMBean
See Also:
isEnabled()

getType

public abstract java.lang.String getType()
Returns the type of this interceptor
Specified by:
getType in interface MBeanServerInterceptor

getNext

protected MBeanServerInterceptor getNext()

setChain

public void setChain(java.util.List chain)
Specified by:
setChain in interface MBeanServerInterceptor

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


Copyright © 2001-2002 MX4J Team. All Rights Reserved.