com.sun.jdmk
Class JdmkMBeanServerBuilder

java.lang.Object
  extended by javax.management.MBeanServerBuilder
      extended by com.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()
Overrides:
newMBeanServerDelegate in class MBeanServerBuilder

newMBeanServer

public MBeanServer newMBeanServer(String defaultDomain,
                                  MBeanServer outer,
                                  MBeanServerDelegate delegate)
Overrides:
newMBeanServer in class MBeanServerBuilder

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.