Interface MBeanSupport

  • All Known Implementing Classes:
    MBeanSupportImpl

    public interface MBeanSupport
    Creates an MBean server and registers MBeans with the created server. The registered MBeans are unregistered when Registry is shut down.
    Since:
    5.2.0
    • Method Detail

      • register

        void register​(Object bean,
                      ObjectName objectName)
        Registers the specified MBean with the server.
        Parameters:
        bean - the MBean instance
        objectName - the name for the MBean
      • register

        void register​(Object bean,
                      String name)
        Registers the specific MBean with the server.
        Parameters:
        bean - the MBean instance
        name - string name used to create an ObjectName
        Since:
        5.3
      • unregister

        void unregister​(ObjectName objectName)
        Unregisters the specified MBean from the server.
        Parameters:
        objectName - the name for the MBean