Example usage for javax.management MBeanRegistrationException MBeanRegistrationException

List of usage examples for javax.management MBeanRegistrationException MBeanRegistrationException

Introduction

In this page you can find the example usage for javax.management MBeanRegistrationException MBeanRegistrationException.

Prototype

public MBeanRegistrationException(java.lang.Exception e, String message) 

Source Link

Document

Creates an MBeanRegistrationException that wraps the actual java.lang.Exception with a detailed message.

Usage

From source file:org.codice.ddf.admin.core.impl.SystemPropertiesAdmin.java

public void shutdown() throws MBeanRegistrationException {
    try {//  w w w. jav a  2s. co m
        if (objectName != null && mbeanServer != null) {
            mbeanServer.unregisterMBean(objectName);
        }
    } catch (InstanceNotFoundException | MBeanRegistrationException e) {
        throw new MBeanRegistrationException(e, "Exception unregistering mbean");
    }
}