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 int | POST_DEREGISTER
Constant used to specify the status of the MBean registration in {@link #registration} |
static int | POST_REGISTER_FALSE
Constant used to specify the status of the MBean registration in {@link #registration} |
static int | POST_REGISTER_TRUE
Constant used to specify the status of the MBean registration in {@link #registration} |
static int | PRE_DEREGISTER
Constant used to specify the status of the MBean registration in {@link #registration} |
static int | PRE_REGISTER
Constant used to specify the status of the MBean registration in {@link #registration} |
Method Summary |
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 |
Object | getAttribute(MBeanMetaData metadata, String attribute)
Gets the specified attribute value from the MBean instance. |
AttributeList | getAttributes(MBeanMetaData metadata, String[] attributes)
Gets the specified attributes values from the MBean instance. |
MBeanInfo | getMBeanInfo(MBeanMetaData metadata)
Calls getMBeanInfo on the MBean instance (only on DynamicMBeans). |
String | getType()
A concise string that tells the type of this interceptor |
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 |
Object | invoke(MBeanMetaData metadata, String method, String[] params, Object[] args)
Invokes the specified MBean operation on the MBean instance |
void | registration(MBeanMetaData metadata, int operation)
Calls the specified {@link javax.management.MBeanRegistration} method on the MBean instance. |
void | removeNotificationListener(MBeanMetaData metadata, NotificationListener listener)
Removes the given notification listener from the MBean. |
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. |
void | setAttribute(MBeanMetaData metadata, Attribute attribute)
Sets the specified attribute value on the MBean instance. |
AttributeList | setAttributes(MBeanMetaData metadata, AttributeList attributes)
Sets the specified attributes values on the MBean instance. |
void | setChain(List interceptors)
Sets the chain of interceptors on this interceptor. |
public static final int POST_DEREGISTER
Constant used to specify the status of the MBean registration in {@link #registration}
public static final int POST_REGISTER_FALSE
Constant used to specify the status of the MBean registration in {@link #registration}
public static final int POST_REGISTER_TRUE
Constant used to specify the status of the MBean registration in {@link #registration}
public static final int PRE_DEREGISTER
Constant used to specify the status of the MBean registration in {@link #registration}
public static final int PRE_REGISTER
Constant used to specify the status of the MBean registration in {@link #registration}
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
public Object getAttribute(
MBeanMetaData metadata, String attribute)
Gets the specified attribute value from the MBean instance.
public AttributeList getAttributes(
MBeanMetaData metadata, String[] attributes)
Gets the specified attributes values from the MBean instance.
Calls getMBeanInfo on the MBean instance (only on DynamicMBeans).
public String getType()
A concise string that tells the type of this interceptor
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
public Object invoke(
MBeanMetaData metadata, String method, String[] params, Object[] args)
Invokes the specified MBean operation on the MBean instance
Calls the specified {@link javax.management.MBeanRegistration} method on the MBean instance.
public void removeNotificationListener(
MBeanMetaData metadata, NotificationListener listener)
Removes the given notification listener from the MBean.
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.
public void setAttribute(
MBeanMetaData metadata, Attribute attribute)
Sets the specified attribute value on the MBean instance.
public AttributeList setAttributes(
MBeanMetaData metadata, AttributeList attributes)
Sets the specified attributes values on the MBean instance.
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.