jdk/src/share/classes/com/sun/jmx/mbeanserver/SunJmxMBeanServer.java
changeset 1156 bbc2d15aaf7a
parent 2 90ce3da70b43
child 1247 b4c26443dee5
equal deleted inserted replaced
1155:a9a142fcf1b5 1156:bbc2d15aaf7a
    26 package com.sun.jmx.mbeanserver;
    26 package com.sun.jmx.mbeanserver;
    27 
    27 
    28 import javax.management.MBeanServer;
    28 import javax.management.MBeanServer;
    29 import javax.management.MBeanServerDelegate;
    29 import javax.management.MBeanServerDelegate;
    30 
    30 
    31 import com.sun.jmx.interceptor.MBeanServerInterceptor;
       
    32 
    31 
    33 /**
    32 /**
    34  * Extends the MBeanServer and MBeanServerInterceptor interface to
    33  * Extends the MBeanServer interface to
    35  * provide methods for getting the MetaData and MBeanServerInstantiator
    34  * provide methods for getting the MetaData and MBeanServerInstantiator
    36  * objects associated with an MBeanServer.
    35  * objects associated with an MBeanServer.
    37  *
    36  *
    38  * @since 1.5
    37  * @since 1.5
    39  */
    38  */
    40 public interface SunJmxMBeanServer
    39 public interface SunJmxMBeanServer
    41     extends MBeanServerInterceptor, MBeanServer {
    40     extends MBeanServer {
    42 
    41 
    43     /**
    42     /**
    44      * Return the MBeanInstantiator associated to this MBeanServer.
    43      * Return the MBeanInstantiator associated to this MBeanServer.
    45      * @exception UnsupportedOperationException if
    44      * @exception UnsupportedOperationException if
    46      *            {@link MBeanServerInterceptor}s
    45      *            {@link MBeanServerInterceptor}s
    66      * @exception UnsupportedOperationException if
    65      * @exception UnsupportedOperationException if
    67      *            {@link MBeanServerInterceptor}s
    66      *            {@link MBeanServerInterceptor}s
    68      *            are not enabled on this object.
    67      *            are not enabled on this object.
    69      * @see #interceptorsEnabled
    68      * @see #interceptorsEnabled
    70      **/
    69      **/
    71     public MBeanServerInterceptor getMBeanServerInterceptor();
    70     public MBeanServer getMBeanServerInterceptor();
    72 
    71 
    73     /**
    72     /**
    74      * Set the MBeanServerInterceptor.
    73      * Set the MBeanServerInterceptor.
    75      * @exception UnsupportedOperationException if
    74      * @exception UnsupportedOperationException if
    76      *            {@link MBeanServerInterceptor}s
    75      *            {@link MBeanServerInterceptor}s
    77      *            are not enabled on this object.
    76      *            are not enabled on this object.
    78      * @see #interceptorsEnabled
    77      * @see #interceptorsEnabled
    79      **/
    78      **/
    80     public void setMBeanServerInterceptor(MBeanServerInterceptor interceptor);
    79     public void setMBeanServerInterceptor(MBeanServer interceptor);
    81 
    80 
    82     /**
    81     /**
    83      * <p>Return the MBeanServerDelegate representing the MBeanServer.
    82      * <p>Return the MBeanServerDelegate representing the MBeanServer.
    84      * Notifications can be sent from the MBean server delegate using
    83      * Notifications can be sent from the MBean server delegate using
    85      * the method {@link MBeanServerDelegate#sendNotification}
    84      * the method {@link MBeanServerDelegate#sendNotification}