MBeanExporter,
activating annotation usage for JMX exposure of Spring beans:
ManagedResource, ManagedAttribute, ManagedOperation, etc.
Sets a MetadataNamingStrategy and a MetadataMBeanInfoAssembler
with an AnnotationJmxAttributeSource, and activates
autodetection by default.
setAutodetect, AnnotationJmxAttributeSource
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationJmxAttributeSource | |
| private final MetadataMBeanInfoAssembler | |
| private final MetadataNamingStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Overrides org. Implements org. "beans" Map and for
auto-detection of MBeans (in the latter case, a
ListableBeanFactory is required).
|
| public void | setDefaultDomain(String defaultDomain)
Specify the default domain to be used for generating ObjectNames when no source-level metadata has been specified. |
| annotationSource | back to summary |
|---|---|
| private final AnnotationJmxAttributeSource annotationSource | |
| metadataAssembler | back to summary |
|---|---|
| private final MetadataMBeanInfoAssembler metadataAssembler | |
| metadataNamingStrategy | back to summary |
|---|---|
| private final MetadataNamingStrategy metadataNamingStrategy | |
| AnnotationMBeanExporter | back to summary |
|---|---|
| public AnnotationMBeanExporter() | |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Overrides org. Implements org. Doc from org. This callback is only required for resolution of bean names in the
| |
| setDefaultDomain | back to summary |
|---|---|
| public void setDefaultDomain(String defaultDomain) Specify the default domain to be used for generating ObjectNames when no source-level metadata has been specified. The default is to use the domain specified in the bean name (if the bean name follows the JMX ObjectName syntax); else, the package name of the managed bean class. | |