public PlainMBeanMirror(MBeanServerConnection mbsc, ObjectName objectName, ObjectName localObjectName) throws IOException, InstanceNotFoundException, IntrospectionException { this.mbsc = mbsc; this.objectName = objectName; this.localObjectName = localObjectName; try { this.mbeanInfo = mbsc.getMBeanInfo(objectName); } catch (ReflectionException e) { // Callers cannot possibly care about the difference between // IntrospectionException and ReflectionException IntrospectionException ie = new IntrospectionException(e.getMessage()); ie.initCause(e); throw ie; } }
public PlainMBeanMirror(MBeanServerConnection mbsc, ObjectName objectName, ObjectName localObjectName) throws IOException, InstanceNotFoundException, IntrospectionException { this.mbsc = mbsc; this.objectName = objectName; this.localObjectName = localObjectName; try { this.mbeanInfo = mbsc.getMBeanInfo(objectName); } catch (ReflectionException e) { // Callers cannot possibly care about the difference between // IntrospectionException and ReflectionException IntrospectionException ie = new IntrospectionException(e.getMessage()); ie.initCause(e); throw ie; } }
public PlainMBeanMirror(MBeanServerConnection mbsc, ObjectName objectName, ObjectName localObjectName) throws IOException, InstanceNotFoundException, IntrospectionException { this.mbsc = mbsc; this.objectName = objectName; this.localObjectName = localObjectName; MBeanInfo beanInfo = null; try { // Don't save the mbean info for dynamic mbeans, it can change during execution if (!mbsc.isInstanceOf(objectName, DynamicMBean.class.getName())) { beanInfo = mbsc.getMBeanInfo(objectName); } } catch (ReflectionException e) { // Callers cannot possibly care about the difference between // IntrospectionException and ReflectionException IntrospectionException ie = new IntrospectionException(e.getMessage()); ie.initCause(e); throw ie; } mBeanInfo = beanInfo; }