com.sun.jdmk
Class JdmkMBeanServerBuilder

java.lang.Object
  extended byjavax.management.MBeanServerBuilder
      extended bycom.sun.jdmk.JdmkMBeanServerBuilder

public class JdmkMBeanServerBuilder
extends MBeanServerBuilder

This class represents a builder that creates Java DMK 5.1 MBeanServer implementations.

The JMX MBeanServerFactory allows for applications to provide their custom MBeanServer implementation. This class used to wrap a Java DMK 5.1 MBeanServer around a Sun JMX 1.2 RI MBeanServer, thus adding the possibility to plug MBeanServerInterceptor in the MBeanServer.

In order to set the Java DMK 5.1 MBeanServerBuilder as default initial builder, you should specify -Djavax.management.builder.initial=com.sun.jdmk.JdmkMBeanServerBuilder on the Java command line.

Since:
Java DMK 5.1
See Also:
MBeanServerFactory

Constructor Summary
JdmkMBeanServerBuilder()
          Creates a new Java DMK MBeanServerBuilder.
 
Method Summary
 MBeanServer newMBeanServer(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)
           
 MBeanServerDelegate newMBeanServerDelegate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdmkMBeanServerBuilder

public JdmkMBeanServerBuilder()
Creates a new Java DMK MBeanServerBuilder. The Java DMK MBeanServer implementation wraps the JMX MBeanServer implementation, and provides advanced features such as MBeanServerInterceptors. The JdmkMBeanServerBuilder created by this constructor wraps a new MBeanServerBuilder, from which the JMX MBeanServer is obtained. If you set the Java DMK MBeanServerBuilder as the default builder by specifying -Djavax.management.builder.initial=com.sun.jdmk.JdmkMBeanServerBuilder on the Java command line, this constructor will be called.

Method Detail

newMBeanServerDelegate

public MBeanServerDelegate newMBeanServerDelegate()

newMBeanServer

public MBeanServer newMBeanServer(String defaultDomain,
                                  MBeanServer outer,
                                  MBeanServerDelegate delegate)

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

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