public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException { MBeanEntry entry = registry.get(name); checkMBeanPermission(entry.getResourceClassName(), null, name, "getMBeanInfo"); try { MBeanInvoker invoker = entry.getInvoker(); return invoker.getMBeanInfo(); } catch (Exception e) { JMException result = ExceptionHandler.handleException(e); if (result instanceof InstanceNotFoundException) throw (InstanceNotFoundException) result; if (result instanceof IntrospectionException) throw (IntrospectionException) result; if (result instanceof ReflectionException) throw (ReflectionException) result; throw new RuntimeException("Cannot obtain MBeanInfo " + name, result); } }
public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException { MBeanEntry entry = registry.get(name); checkMBeanPermission(entry.getResourceClassName(), null, name, "getMBeanInfo"); try { MBeanInvoker invoker = entry.getInvoker(); return invoker.getMBeanInfo(); } catch (Exception e) { JMException result = ExceptionHandler.handleException(e); if (result instanceof InstanceNotFoundException) throw (InstanceNotFoundException) result; if (result instanceof IntrospectionException) throw (IntrospectionException) result; if (result instanceof ReflectionException) throw (ReflectionException) result; throw new RuntimeException("Cannot obtain MBeanInfo " + name, result); } }
MBeanInfo info = invoker.getMBeanInfo(); verifyMBeanInfo(info, name); entry.setResourceClassName(info.getClassName()); (regName, entry.getResourceClassName(), delegate.getMBeanServerId()); persistIfRequired(invoker.getMBeanInfo(), regName);
MBeanInfo info = invoker.getMBeanInfo(); verifyMBeanInfo(info, name); entry.setResourceClassName(info.getClassName()); (regName, entry.getResourceClassName(), delegate.getMBeanServerId()); persistIfRequired(invoker.getMBeanInfo(), regName);