mx4j.server.interceptor

Interface MBeanServerInterceptor

public interface MBeanServerInterceptor

MBeanServer --> MBean interceptor. These interceptors are used internally to implement MBeanServer functionality prior to call MBeans, and can be used to customize MBeanServer implementation by users.

Version: $Revision: 1.6 $

Field Summary
static intPOST_DEREGISTER
Constant used to specify the status of the MBean registration in
static intPOST_REGISTER_FALSE
Constant used to specify the status of the MBean registration in
static intPOST_REGISTER_TRUE
Constant used to specify the status of the MBean registration in
static intPRE_DEREGISTER
Constant used to specify the status of the MBean registration in
static intPRE_REGISTER
Constant used to specify the status of the MBean registration in
Method Summary
voidaddNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
Adds the given notification listener to the MBean, along with the given filter and handback
ObjectgetAttribute(MBeanMetaData metadata, String attribute)
Gets the specified attribute value from the MBean instance.
AttributeListgetAttributes(MBeanMetaData metadata, String[] attributes)
Gets the specified attributes values from the MBean instance.
MBeanInfogetMBeanInfo(MBeanMetaData metadata)
Calls getMBeanInfo on the MBean instance (only on DynamicMBeans).
StringgetType()
A concise string that tells the type of this interceptor
voidinstantiate(MBeanMetaData metadata, String className, String[] params, Object[] args)
Instantiate the given className passing the given arguments to the constructor with the given signature
Objectinvoke(MBeanMetaData metadata, String method, String[] params, Object[] args)
Invokes the specified MBean operation on the MBean instance
voidregistration(MBeanMetaData metadata, int operation)
Calls the specified javax.management.MBeanRegistration method on the MBean instance.
voidremoveNotificationListener(MBeanMetaData metadata, NotificationListener listener)
Removes the given notification listener from the MBean.
voidremoveNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
Removes the given notification listener from the MBean, specified by the given filter and handback.
voidsetAttribute(MBeanMetaData metadata, Attribute attribute)
Sets the specified attribute value on the MBean instance.
AttributeListsetAttributes(MBeanMetaData metadata, AttributeList attributes)
Sets the specified attributes values on the MBean instance.
voidsetChain(List interceptors)
Sets the chain of interceptors on this interceptor.

Field Detail

POST_DEREGISTER

public static final int POST_DEREGISTER
Constant used to specify the status of the MBean registration in MBeanServerInterceptor

POST_REGISTER_FALSE

public static final int POST_REGISTER_FALSE
Constant used to specify the status of the MBean registration in MBeanServerInterceptor

POST_REGISTER_TRUE

public static final int POST_REGISTER_TRUE
Constant used to specify the status of the MBean registration in MBeanServerInterceptor

PRE_DEREGISTER

public static final int PRE_DEREGISTER
Constant used to specify the status of the MBean registration in MBeanServerInterceptor

PRE_REGISTER

public static final int PRE_REGISTER
Constant used to specify the status of the MBean registration in MBeanServerInterceptor

Method Detail

addNotificationListener

public void addNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
Adds the given notification listener to the MBean, along with the given filter and handback

getAttribute

public Object getAttribute(MBeanMetaData metadata, String attribute)
Gets the specified attribute value from the MBean instance.

getAttributes

public AttributeList getAttributes(MBeanMetaData metadata, String[] attributes)
Gets the specified attributes values from the MBean instance.

getMBeanInfo

public MBeanInfo getMBeanInfo(MBeanMetaData metadata)
Calls getMBeanInfo on the MBean instance (only on DynamicMBeans).

getType

public String getType()
A concise string that tells the type of this interceptor

instantiate

public void instantiate(MBeanMetaData metadata, String className, String[] params, Object[] args)
Instantiate the given className passing the given arguments to the constructor with the given signature

invoke

public Object invoke(MBeanMetaData metadata, String method, String[] params, Object[] args)
Invokes the specified MBean operation on the MBean instance

registration

public void registration(MBeanMetaData metadata, int operation)
Calls the specified javax.management.MBeanRegistration method on the MBean instance.

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener)
Removes the given notification listener from the MBean.

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
Removes the given notification listener from the MBean, specified by the given filter and handback.

setAttribute

public void setAttribute(MBeanMetaData metadata, Attribute attribute)
Sets the specified attribute value on the MBean instance.

setAttributes

public AttributeList setAttributes(MBeanMetaData metadata, AttributeList attributes)
Sets the specified attributes values on the MBean instance.

setChain

public void setChain(List interceptors)
Sets the chain of interceptors on this interceptor. This interceptor will use this list to find the interceptor in the chain after itself

Parameters: interceptors The list of interceptors

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.