Uses of Interface javax.management.MBeanServer (Java SE 9 & JDK 9 )

## Uses of Interface
javax.management.MBeanServer

- Packages that use MBeanServer
  Package | Description
  --- | ---
  java.lang.management | Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
  javax.management | Provides the core classes for the Java Management Extensions.
  javax.management.loading | Provides the classes which implement advanced dynamic loading.
  javax.management.modelmbean | Provides the definition of the ModelMBean classes.
  javax.management.monitor | Provides the definition of the monitor classes.
  javax.management.relation | Provides the definition of the Relation Service.
  javax.management.remote | Interfaces for remote access to JMX MBean servers.
  javax.management.remote.rmi | The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.
  javax.management.timer | Provides the definition of the Timer MBean.

- - ### Uses of MBeanServer in java.lang.management

    Methods in java.lang.management that return MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static MBeanServer` | ManagementFactory.`getPlatformMBeanServer​()` | Returns the platform `MBeanServer`.

  - ### Uses of MBeanServer in javax.management

    Methods in javax.management that return MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static MBeanServer` | MBeanServerFactory.`createMBeanServer​()` | Return a new object implementing the MBeanServer interface with a standard default domain name.
    `static MBeanServer` | MBeanServerFactory.`createMBeanServer​(String domain)` | Return a new object implementing the `MBeanServer` interface with the specified default domain name.
    `static MBeanServer` | QueryEval.`getMBeanServer​()` | Return the MBean server that was most recently given to the `setMBeanServer` method by this thread.
    `MBeanServer` | MBeanServerBuilder.`newMBeanServer​(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)` | This method creates a new MBeanServer implementation object.
    `static MBeanServer` | MBeanServerFactory.`newMBeanServer​()` | Return a new object implementing the MBeanServer interface with a standard default domain name, without keeping an internal reference to this new object.
    `static MBeanServer` | MBeanServerFactory.`newMBeanServer​(String domain)` | Return a new object implementing the MBeanServer interface with the specified default domain name, without keeping an internal reference to this new object.

    Methods in javax.management that return types with arguments of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ArrayList<MBeanServer>` | MBeanServerFactory.`findMBeanServer​(String agentId)` | Return a list of registered MBeanServer objects.

    Methods in javax.management with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ClassLoaderRepository` | MBeanServerFactory.`getClassLoaderRepository​(MBeanServer server)` | Return the ClassLoaderRepository used by the given MBeanServer.
    `MBeanServer` | MBeanServerBuilder.`newMBeanServer​(String defaultDomain, MBeanServer outer, MBeanServerDelegate delegate)` | This method creates a new MBeanServer implementation object.
    `ObjectName` | MBeanRegistration.`preRegister​(MBeanServer server, ObjectName name)` | Allows the MBean to perform any operations it needs before being registered in the MBean Server.
    `ObjectName` | StandardMBean.`preRegister​(MBeanServer server, ObjectName name)` | Allows the MBean to perform any operations it needs before being registered in the MBean server.
    `static void` | MBeanServerFactory.`releaseMBeanServer​(MBeanServer mbeanServer)` | Remove internal MBeanServerFactory references to a created MBeanServer.
    `void` | AttributeValueExp.`setMBeanServer​(MBeanServer s)` | Deprecated. This method has no effect. The MBean Server used to obtain an attribute value is `QueryEval.getMBeanServer()`.
    `void` | ObjectName.`setMBeanServer​(MBeanServer mbs)` |
    `void` | QueryEval.`setMBeanServer​(MBeanServer s)` | Sets the MBean server on which the query is to be performed.
    `void` | QueryExp.`setMBeanServer​(MBeanServer s)` | Sets the MBean server on which the query is to be performed.
    `void` | StringValueExp.`setMBeanServer​(MBeanServer s)` | Deprecated.
    `void` | ValueExp.`setMBeanServer​(MBeanServer s)` | Deprecated. This method is not needed because a `ValueExp` can access the MBean server in which it is being evaluated by using `QueryEval.getMBeanServer()`.

  - ### Uses of MBeanServer in javax.management.loading

    Methods in javax.management.loading with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `ObjectName` | MLet.`preRegister​(MBeanServer server, ObjectName name)` | Allows the m-let to perform any operations it needs before being registered in the MBean server.

  - ### Uses of MBeanServer in javax.management.modelmbean

    Methods in javax.management.modelmbean with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `ObjectName` | RequiredModelMBean.`preRegister​(MBeanServer server, ObjectName name)` | Allows the MBean to perform any operations it needs before being registered in the MBean server.

  - ### Uses of MBeanServer in javax.management.monitor

    Fields in javax.management.monitor declared as MBeanServer
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected MBeanServer` | Monitor.`server` | Reference to the MBean server.

    Methods in javax.management.monitor with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `ObjectName` | Monitor.`preRegister​(MBeanServer server, ObjectName name)` | Allows the monitor MBean to perform any operations it needs before being registered in the MBean server.

  - ### Uses of MBeanServer in javax.management.relation

    Methods in javax.management.relation with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `ObjectName` | RelationService.`preRegister​(MBeanServer server, ObjectName name)` |
    `ObjectName` | RelationSupport.`preRegister​(MBeanServer server, ObjectName name)` |

    Constructors in javax.management.relation with parameters of type MBeanServer
    Constructor | Description
    --- | ---
    `RelationSupport​(String relationId, ObjectName relationServiceName, MBeanServer relationServiceMBeanServer, String relationTypeName, RoleList list)` | Creates a `RelationSupport` object.

  - ### Uses of MBeanServer in javax.management.remote

    Subinterfaces of MBeanServer in javax.management.remote
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `MBeanServerForwarder` | An object of this class implements the MBeanServer interface and wraps another object that also implements that interface.

    Methods in javax.management.remote that return MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `MBeanServer` | JMXConnectorServer.`getMBeanServer​()` | Returns the MBean server that this connector server is attached to.
    `MBeanServer` | MBeanServerForwarder.`getMBeanServer​()` | Returns the MBeanServer object to which requests will be forwarded.

    Methods in javax.management.remote with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `static JMXConnectorServer` | JMXConnectorServerFactory.`newJMXConnectorServer​(JMXServiceURL serviceURL, Map<String,?> environment, MBeanServer mbeanServer)` | Creates a connector server at the given address.
    `JMXConnectorServer` | JMXConnectorServerProvider.`newJMXConnectorServer​(JMXServiceURL serviceURL, Map<String,?> environment, MBeanServer mbeanServer)` | Creates a new connector server at the given address.
    `ObjectName` | JMXConnectorServer.`preRegister​(MBeanServer mbs, ObjectName name)` | Called by an MBean server when this connector server is registered in that MBean server.
    `void` | MBeanServerForwarder.`setMBeanServer​(MBeanServer mbs)` | Sets the MBeanServer object to which requests will be forwarded after treatment by this object.

    Constructors in javax.management.remote with parameters of type MBeanServer
    Constructor | Description
    --- | ---
    `JMXConnectorServer​(MBeanServer mbeanServer)` | Constructs a connector server that is attached to the given MBean server.

  - ### Uses of MBeanServer in javax.management.remote.rmi

    Methods in javax.management.remote.rmi that return MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `MBeanServer` | RMIServerImpl.`getMBeanServer​()` | The `MBeanServer` to which this connector server is attached.

    Methods in javax.management.remote.rmi with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | RMIServerImpl.`setMBeanServer​(MBeanServer mbs)` | Sets the `MBeanServer` to which this connector server is attached.

    Constructors in javax.management.remote.rmi with parameters of type MBeanServer
    Constructor | Description
    --- | ---
    `RMIConnectorServer​(JMXServiceURL url, Map<String,?> environment, MBeanServer mbeanServer)` | Makes an `RMIConnectorServer` for the given MBean server.
    `RMIConnectorServer​(JMXServiceURL url, Map<String,?> environment, RMIServerImpl rmiServerImpl, MBeanServer mbeanServer)` | Makes an `RMIConnectorServer` for the given MBean server.

  - ### Uses of MBeanServer in javax.management.timer

    Methods in javax.management.timer with parameters of type MBeanServer
    Modifier and Type | Method | Description
    --- | --- | ---
    `ObjectName` | Timer.`preRegister​(MBeanServer server, ObjectName name)` | Allows the timer MBean to perform any operations it needs before being registered in the MBean server.