mx4j.server.interceptor

Class MBeanServerInterceptorConfigurator

public class MBeanServerInterceptorConfigurator extends Object implements MBeanServerInterceptorConfiguratorMBean

MBean that configures the MBeanServer --> MBean interceptor chain.

Version: $Revision: 1.9 $

Field Summary
static StringOBJECT_NAME
Constructor Summary
MBeanServerInterceptorConfigurator(MBeanServer server)
Creates an instance of this configurator, for the given MBeanServer
Method Summary
voidaddInterceptor(MBeanServerInterceptor interceptor)
Appends the given interceptor, provided by the client, to the existing interceptor chain.
voidaddPostInterceptor(MBeanServerInterceptor interceptor)
Adds the given interceptor at the end of the interceptor chain, after the custom interceptors that may be added via MBeanServerInterceptorConfigurator.
voidaddPreInterceptor(MBeanServerInterceptor interceptor)
Adds the given interceptor at the beginning of the interceptor chain, before the custom interceptors that may be added via MBeanServerInterceptorConfigurator.
voidclearInterceptors()
Removes all the interceptors added via MBeanServerInterceptorConfigurator.
MBeanServerInterceptorgetHeadInterceptor()
Returns the head interceptor of the interceptor chain.
booleanisRunning()
Returns whether this configurator is running and thus if the MBeanServer can accept incoming calls
voidregisterInterceptor(MBeanServerInterceptor interceptor, ObjectName name)
Appends the given interceptor, provided by the client, to the existing interceptor chain and registers it as MBean.
voidstart()
Starts this configurator, so that the MBeanServer is now able to accept incoming calls.
voidstop()
Stops this configurator, so that the MBeanServer is not able to accept incoming calls.

Field Detail

OBJECT_NAME

public static final String OBJECT_NAME

Constructor Detail

MBeanServerInterceptorConfigurator

public MBeanServerInterceptorConfigurator(MBeanServer server)
Creates an instance of this configurator, for the given MBeanServer

Method Detail

addInterceptor

public void addInterceptor(MBeanServerInterceptor interceptor)
Appends the given interceptor, provided by the client, to the existing interceptor chain.

See Also: MBeanServerInterceptorConfigurator

addPostInterceptor

public void addPostInterceptor(MBeanServerInterceptor interceptor)
Adds the given interceptor at the end of the interceptor chain, after the custom interceptors that may be added via MBeanServerInterceptorConfigurator. This method is called by the MBeanServer during initialization, to configure the interceptors needed to work properly.

addPreInterceptor

public void addPreInterceptor(MBeanServerInterceptor interceptor)
Adds the given interceptor at the beginning of the interceptor chain, before the custom interceptors that may be added via MBeanServerInterceptorConfigurator. This method is called by the MBeanServer during initialization, to configure the interceptors needed to work properly.

clearInterceptors

public void clearInterceptors()
Removes all the interceptors added via MBeanServerInterceptorConfigurator.

See Also: MBeanServerInterceptorConfigurator

getHeadInterceptor

public MBeanServerInterceptor getHeadInterceptor()
Returns the head interceptor of the interceptor chain. The head interceptor is always present.

isRunning

public boolean isRunning()
Returns whether this configurator is running and thus if the MBeanServer can accept incoming calls

See Also: MBeanServerInterceptorConfigurator

registerInterceptor

public void registerInterceptor(MBeanServerInterceptor interceptor, ObjectName name)
Appends the given interceptor, provided by the client, to the existing interceptor chain and registers it as MBean.

See Also: MBeanServerInterceptorConfigurator

start

public void start()
Starts this configurator, so that the MBeanServer is now able to accept incoming calls.

See Also: MBeanServerInterceptorConfigurator MBeanServerInterceptorConfigurator

stop

public void stop()
Stops this configurator, so that the MBeanServer is not able to accept incoming calls.

See Also: MBeanServerInterceptorConfigurator

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