org.appng.core

## Class JMXUtils

- java.lang.Object
- - org.appng.core.JMXUtils

-     public class JMXUtils
      extends Object

  Utility-class for registering/unregistering JMX-objects.
  Author:
    Matthias Müller

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `register(Object object, String name)` Registers the given object under the given name, if no other object is already registered under this name.
    `static boolean` | `unregister(String name)` Unregisters the object currently registered under the given name, if existing.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### register

          public static boolean register(Object object,
                                         String name)

      Registers the given object under the given name, if no other object is already registered under this name.
      Parameters:
        `object` - the object to register
        `name` - the name for the object to register
      Returns:
        `true` if the object has been registered, `false` otherwise (also if an exception occurred while registering).

    - #### unregister

          public static boolean unregister(String name)

      Unregisters the object currently registered under the given name, if existing.
      Parameters:
        `name` - the name for the object to unregister
      Returns:
        `true` if the object has been unregistered, `false` otherwise (also if an exception occurred while unregistering).

Copyright © 2011–2023 aiticon GmbH. All rights reserved.