Path: blob/master/src/java.management/share/classes/com/sun/jmx/mbeanserver/SunJmxMBeanServer.java
41161 views
/*1* Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package com.sun.jmx.mbeanserver;2627import javax.management.MBeanServer;28import javax.management.MBeanServerDelegate;293031/**32* Extends the MBeanServer interface to33* provide methods for getting the MetaData and MBeanServerInstantiator34* objects associated with an MBeanServer.35*36* @since 1.537*/38public interface SunJmxMBeanServer39extends MBeanServer {4041/**42* Return the MBeanInstantiator associated to this MBeanServer.43* @exception UnsupportedOperationException if44* {@link MBeanServerInterceptor}s45* are not enabled on this object.46* @see #interceptorsEnabled47*/48public MBeanInstantiator getMBeanInstantiator();4950/**51* Tell whether {@link MBeanServerInterceptor}s are enabled on this52* object.53* @return <code>true</code> if {@link MBeanServerInterceptor}s are54* enabled.55* @see #getMBeanServerInterceptor56* @see #setMBeanServerInterceptor57* @see #getMBeanInstantiator58* @see com.sun.jmx.mbeanserver.JmxMBeanServerBuilder59**/60public boolean interceptorsEnabled();6162/**63* Return the MBeanServerInterceptor.64* @exception UnsupportedOperationException if65* {@link MBeanServerInterceptor}s66* are not enabled on this object.67* @see #interceptorsEnabled68**/69public MBeanServer getMBeanServerInterceptor();7071/**72* Set the MBeanServerInterceptor.73* @exception UnsupportedOperationException if74* {@link MBeanServerInterceptor}s75* are not enabled on this object.76* @see #interceptorsEnabled77**/78public void setMBeanServerInterceptor(MBeanServer interceptor);7980/**81* <p>Return the MBeanServerDelegate representing the MBeanServer.82* Notifications can be sent from the MBean server delegate using83* the method {@link MBeanServerDelegate#sendNotification}84* in the returned object.</p>85*86*/87public MBeanServerDelegate getMBeanServerDelegate();8889}909192