mx4j.server.interceptor

Class InvokerMBeanServerInterceptor

public class InvokerMBeanServerInterceptor extends DefaultMBeanServerInterceptor implements InvokerMBeanServerInterceptorMBean

The last MBeanServer --$gt; MBean interceptor in the chain. It calls the MBean instance; if the MBean is a dynamic MBean, the call is direct, otherwise the call is delegated to an MBeanInvoker.

Version: $Revision: 1.23 $

Constructor Summary
InvokerMBeanServerInterceptor(MBeanServer outerServer)
Instantiates a new interceptor instance.
Method Summary
voidaddNotificationListener(MBeanMetaData metadata, NotificationListener listener, NotificationFilter filter, Object handback)
ObjectgetAttribute(MBeanMetaData metadata, String attribute)
AttributeListgetAttributes(MBeanMetaData metadata, String[] attributes)
MBeanInfogetMBeanInfo(MBeanMetaData metadata)
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()
This interceptor is always 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)

Constructor Detail

InvokerMBeanServerInterceptor

public InvokerMBeanServerInterceptor(MBeanServer outerServer)
Instantiates a new interceptor instance.

Parameters: outerServer the MBeanServer instance that is passed to MBeanRegistration#preRegister(MBeanServer, ObjectName).

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)

getMBeanInfo

public MBeanInfo getMBeanInfo(MBeanMetaData metadata)

getType

public 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()
This interceptor is always enabled

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)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.