mx4j.server.interceptor
Class SecurityMBeanServerInterceptor

java.lang.Object
  extended bymx4j.server.interceptor.DefaultMBeanServerInterceptor
      extended bymx4j.server.interceptor.SecurityMBeanServerInterceptor
All Implemented Interfaces:
DefaultMBeanServerInterceptorMBean, MBeanServerInterceptor

public class SecurityMBeanServerInterceptor
extends DefaultMBeanServerInterceptor

Version:
$Revision: 1.9 $
Author:
Simone Bordet

Field Summary
 
Fields inherited from interface mx4j.server.interceptor.MBeanServerInterceptor
POST_DEREGISTER, POST_REGISTER_FALSE, POST_REGISTER_TRUE, PRE_DEREGISTER, PRE_REGISTER
 
Constructor Summary
SecurityMBeanServerInterceptor()
           
 
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)
           
 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)
           
 
Methods inherited from class mx4j.server.interceptor.DefaultMBeanServerInterceptor
getLogger, getNext, setChain, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityMBeanServerInterceptor

public SecurityMBeanServerInterceptor()
Method Detail

getType

public java.lang.String getType()
Description copied from class: DefaultMBeanServerInterceptor
Returns the type of this interceptor

Specified by:
getType in interface MBeanServerInterceptor
Specified by:
getType in class DefaultMBeanServerInterceptor

isEnabled

public boolean isEnabled()
Description copied from class: DefaultMBeanServerInterceptor
Returns whether this interceptor is enabled

Specified by:
isEnabled in interface DefaultMBeanServerInterceptorMBean
Overrides:
isEnabled in class DefaultMBeanServerInterceptor
See Also:
DefaultMBeanServerInterceptor.setEnabled(boolean)

addNotificationListener

public void addNotificationListener(MBeanMetaData metadata,
                                    NotificationListener listener,
                                    NotificationFilter filter,
                                    java.lang.Object handback)
Specified by:
addNotificationListener in interface MBeanServerInterceptor
Overrides:
addNotificationListener in class DefaultMBeanServerInterceptor

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata,
                                       NotificationListener listener,
                                       NotificationFilter filter,
                                       java.lang.Object handback)
                                throws ListenerNotFoundException
Specified by:
removeNotificationListener in interface MBeanServerInterceptor
Overrides:
removeNotificationListener in class DefaultMBeanServerInterceptor
Throws:
ListenerNotFoundException

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
Overrides:
instantiate in class DefaultMBeanServerInterceptor
Throws:
ReflectionException
MBeanException

getMBeanInfo

public MBeanInfo getMBeanInfo(MBeanMetaData metadata)
Specified by:
getMBeanInfo in interface MBeanServerInterceptor
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
Specified by:
invoke in interface MBeanServerInterceptor
Overrides:
invoke in class DefaultMBeanServerInterceptor
Throws:
MBeanException
ReflectionException

getAttributes

public AttributeList getAttributes(MBeanMetaData metadata,
                                   java.lang.String[] attributes)
Specified by:
getAttributes in interface MBeanServerInterceptor
Overrides:
getAttributes in class DefaultMBeanServerInterceptor

setAttributes

public AttributeList setAttributes(MBeanMetaData metadata,
                                   AttributeList attributes)
Specified by:
setAttributes in interface MBeanServerInterceptor
Overrides:
setAttributes in class DefaultMBeanServerInterceptor

getAttribute

public java.lang.Object getAttribute(MBeanMetaData metadata,
                                     java.lang.String attribute)
                              throws MBeanException,
                                     AttributeNotFoundException,
                                     ReflectionException
Specified by:
getAttribute in interface MBeanServerInterceptor
Overrides:
getAttribute in class DefaultMBeanServerInterceptor
Throws:
MBeanException
AttributeNotFoundException
ReflectionException

setAttribute

public void setAttribute(MBeanMetaData metadata,
                         Attribute attribute)
                  throws MBeanException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         ReflectionException
Specified by:
setAttribute in interface MBeanServerInterceptor
Overrides:
setAttribute in class DefaultMBeanServerInterceptor
Throws:
MBeanException
AttributeNotFoundException
InvalidAttributeValueException
ReflectionException

registration

public void registration(MBeanMetaData metadata,
                         int operation)
                  throws MBeanRegistrationException
Specified by:
registration in interface MBeanServerInterceptor
Overrides:
registration in class DefaultMBeanServerInterceptor
Throws:
MBeanRegistrationException


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