MBeanExporter.java 文件源码

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

项目:spring 作者:
/**
 * Create an instance of a class that implements {@code ModelMBean}.
 * <p>This method is called to obtain a {@code ModelMBean} instance to
 * use when registering a bean. This method is called once per bean during the
 * registration phase and must return a new instance of {@code ModelMBean}
 * @return a new instance of a class that implements {@code ModelMBean}
 * @throws javax.management.MBeanException if creation of the ModelMBean failed
 */
protected ModelMBean createModelMBean() throws MBeanException {
    return (this.exposeManagedResourceClassLoader ? new SpringModelMBean() : new RequiredModelMBean());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号