mx4j.server.interceptor

Class DefaultMBeanServerInterceptor

public abstract class DefaultMBeanServerInterceptor extends Object implements MBeanServerInterceptor, DefaultMBeanServerInterceptorMBean

Base class for MBeanServer --> MBean interceptors.

Version: $Revision: 1.11 $

Constructor Summary
protected DefaultMBeanServerInterceptor()
Method Summary
voidaddNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
ObjectgetAttribute(MBeanMetaData metadata, String attribute)
AttributeListgetAttributes(MBeanMetaData metadata, String[] attributes)
protected LoggergetLogger()
MBeanInfogetMBeanInfo(MBeanMetaData metadata)
protected MBeanServerInterceptorgetNext()
abstract StringgetType()
Returns the type of this interceptor
voidinstantiate(MBeanMetaData metadata, String className, String[] params, Object[] args)
Objectinvoke(MBeanMetaData metadata, String method, String[] params, Object[] args)
booleanisEnabled()
Returns whether this interceptor is enabled
voidregistration(MBeanMetaData metadata, int operation)
voidremoveNotificationListener(MBeanMetaData metadata, NotificationListener listener)
voidremoveNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
voidsetAttribute(MBeanMetaData metadata, Attribute attribute)
AttributeListsetAttributes(MBeanMetaData metadata, AttributeList attributes)
voidsetChain(List chain)
voidsetEnabled(boolean enabled)
Enables or disables this interceptor

Constructor Detail

DefaultMBeanServerInterceptor

protected DefaultMBeanServerInterceptor()

Method Detail

addNotificationListener

public void addNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)

getAttribute

public Object getAttribute(MBeanMetaData metadata, String attribute)

getAttributes

public AttributeList getAttributes(MBeanMetaData metadata, String[] attributes)

getLogger

protected Logger getLogger()

getMBeanInfo

public MBeanInfo getMBeanInfo(MBeanMetaData metadata)

getNext

protected MBeanServerInterceptor getNext()

getType

public abstract String getType()
Returns the type of this interceptor

instantiate

public void instantiate(MBeanMetaData metadata, String className, String[] params, Object[] args)

invoke

public Object invoke(MBeanMetaData metadata, String method, String[] params, Object[] args)

isEnabled

public boolean isEnabled()
Returns whether this interceptor is enabled

See Also: DefaultMBeanServerInterceptor

registration

public void registration(MBeanMetaData metadata, int operation)

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener)

removeNotificationListener

public void removeNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)

setAttribute

public void setAttribute(MBeanMetaData metadata, Attribute attribute)

setAttributes

public AttributeList setAttributes(MBeanMetaData metadata, AttributeList attributes)

setChain

public void setChain(List chain)

setEnabled

public void setEnabled(boolean enabled)
Enables or disables this interceptor

See Also: DefaultMBeanServerInterceptor

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