AbstractMBeanInfoAssembler.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:spring 作者:
/**
 * Create an instance of the {@code ModelMBeanInfoSupport} class supplied with all
 * JMX implementations and populates the metadata through calls to the subclass.
 * @param managedBean the bean that will be exposed (might be an AOP proxy)
 * @param beanKey the key associated with the managed bean
 * @return the populated ModelMBeanInfo instance
 * @throws JMException in case of errors
 * @see #getDescription(Object, String)
 * @see #getAttributeInfo(Object, String)
 * @see #getConstructorInfo(Object, String)
 * @see #getOperationInfo(Object, String)
 * @see #getNotificationInfo(Object, String)
 * @see #populateMBeanDescriptor(javax.management.Descriptor, Object, String)
 */
@Override
public ModelMBeanInfo getMBeanInfo(Object managedBean, String beanKey) throws JMException {
    checkManagedBean(managedBean);
    ModelMBeanInfo info = new ModelMBeanInfoSupport(
            getClassName(managedBean, beanKey), getDescription(managedBean, beanKey),
            getAttributeInfo(managedBean, beanKey), getConstructorInfo(managedBean, beanKey),
            getOperationInfo(managedBean, beanKey), getNotificationInfo(managedBean, beanKey));
    Descriptor desc = info.getMBeanDescriptor();
    populateMBeanDescriptor(desc, managedBean, beanKey);
    info.setMBeanDescriptor(desc);
    return info;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号