1 7 8 package com.sun.jmx.mbeanserver; 9 10 import javax.management.MBeanInfo ; 11 import javax.management.StandardMBean ; 12 13 19 public final class StandardMBeanMetaDataImpl extends StandardMetaDataImpl { 20 21 private final StandardMBean mbean; 22 23 26 public StandardMBeanMetaDataImpl(StandardMBean mbean) { 27 super(false); 28 this.mbean = mbean; 29 } 30 31 42 MBeanInfo getCachedMBeanInfo(Class beanClass) { 43 44 if (beanClass == null) return null; 45 46 synchronized (mbean) { 50 final Class implementationClass = 54 mbean.getImplementationClass(); 55 if (implementationClass == null) return null; 56 if (!beanClass.equals(implementationClass)) return null; 57 58 return mbean.getMBeanInfo(); 61 } 62 } 63 64 75 Class getCachedMBeanInterface(Class beanClass) { 76 synchronized (mbean) { 80 final Class implementationClass = 84 mbean.getImplementationClass(); 85 if (implementationClass == null) return null; 86 if (!beanClass.equals(implementationClass)) return null; 87 88 return mbean.getMBeanInterface(); 91 } 92 } 93 94 113 void cacheMBeanInfo(Class c, Class mbeanInterface, MBeanInfo mbeanInfo) { 114 } 115 } 116 | Popular Tags |