Skip to content

Add property to MBeanExporter to control eager initiailization of FactoryBeans [SPR-4954] #9629

@spring-projects-issues

Description

@spring-projects-issues

Scott Resnik opened SPR-4954 and commented

In spring 2.0, I was able to have the products of BeanFactory beans exported in JMX via the MBeanExporter. In spring 2.5, this is no longer the case. It appears that only the actual BeanFactory beans are exported (Noted with the "&" in the name). It appears this was done to avoid having the MBeanExporter eagerly init any BeanFactory beans.

It would be nice if in the autodetect method of the MBeanExporter the parameters to (line ~875 of MBeanExporter)"beanFactory.getNamesForType" call could be injected. Then the user would have control over whether or not the MBeanExporter causes eager initialization or not.


Affects: 2.5.5

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions