com.sun.jdmk
Class MBeanInterceptorWrapper

java.lang.Object
  extended by com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper
      extended by com.sun.jdmk.MBeanInterceptorWrapper
All Implemented Interfaces:
MBeanServerInterceptor, MBeanInterceptor, NotificationRegistration, ProxyHandler

Deprecated. use MBeanServerInterceptorWrapper instead.

public class MBeanInterceptorWrapper
extends MBeanServerInterceptorWrapper
implements MBeanInterceptor

Implements a MBeanInterceptorWrapper that receives all requests from the MBeanServer and forward them to a wrapped MBeanInterceptor.

If the MBeanInterceptorWrapper is instantiated with a non null MBeanInterceptorWrapper.Controller object, then beginOperation is called on the controller before any operation is invoked on the wrapped interceptor, and endOperation is called on the controller when the operation invoked on the wrapped interceptor is completed.

The controller object can be used, for instance, to determine how many operations are currently active on the wrapped interceptor.

Since:
Java DMK 5.0
See Also:
MBeanInterceptorWrapper.Controller

Nested Class Summary
static interface MBeanInterceptorWrapper.Controller
          Deprecated. Use MBeanServerInterceptorWrapper.Controller instead.
 
Constructor Summary
MBeanInterceptorWrapper(MBeanInterceptor interceptor, MBeanInterceptorWrapper.Controller controller)
          Deprecated. Construct a new MBeanInterceptorWrapper.
 
Method Summary
 
Methods inherited from class com.sun.jdmk.interceptor.MBeanServerInterceptorWrapper
addNotificationListener, addNotificationListener, checkInitialization, createMBean, createMBean, getAttribute, getAttributes, getClassLoader, getClassLoaderFor, getDefaultDomain, getDomains, getMBeanClassLoader, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, registerMBean, removeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jdmk.MBeanInterceptor
addNotificationListener, addNotificationListener, createMBean, createMBean, getAttribute, getAttributes, getDefaultDomain, getMBeanClassLoader, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, registerMBean, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean
 

Constructor Detail

MBeanInterceptorWrapper

public MBeanInterceptorWrapper(MBeanInterceptor interceptor,
                               MBeanInterceptorWrapper.Controller controller)
Deprecated. 
Construct a new MBeanInterceptorWrapper.

Parameters:
interceptor - The wrapped interceptor.
controller - The (possibly null) controller object on which beginOperation and endOperation should be called. If controller==null, then beginOperation and endOperation are not called.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.