use of io.fabric8.api.mxbean.ProfileManagement in project fabric8 by jboss-fuse.
the class MXBeansProvider method activateInternal.
private void activateInternal() {
MBeanServer server = mbeanServer.get();
try {
ProfileManagement profileMXBean = new ProfileManagementImpl();
server.registerMBean(new StandardMBean(profileMXBean, ProfileManagement.class, true), new ObjectName(ProfileManagement.OBJECT_NAME));
} catch (JMException ex) {
throw new IllegalStateException(ex);
}
}
Aggregations