java.lang.Object | |
↳ | org.springframework.jmx.export.naming.MetadataNamingStrategy |
An implementation of the ObjectNamingStrategy
interface
that reads the ObjectName
from the source-level metadata.
Falls back to the bean key (bean name) if no ObjectName
can be found in source-level metadata.
Uses the JmxAttributeSource
strategy interface, so that
metadata can be read using any supported implementation. Out of the box,
AnnotationJmxAttributeSource
introspects a well-defined set of Java 5 annotations that come with Spring.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
MetadataNamingStrategy | |||||||||||
Create a new
MetadataNamingStrategy |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Reads the
ObjectName from the source-level metadata associated
with the managed resource's Class . | |||||||||||
Set the implementation of the
JmxAttributeSource interface to use
when reading the source-level metadata. | |||||||||||
Specify the default domain to be used for generating ObjectNames
when no source-level metadata has been specified.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
| |||||||||||
From interface
org.springframework.jmx.export.naming.ObjectNamingStrategy
|
Create a new MetadataNamingStrategy
which needs to be
configured through the
setAttributeSource(JmxAttributeSource)
method.
Create a new MetadataNamingStrategy
for the given
JmxAttributeSource
.
attributeSource | the JmxAttributeSource to use |
---|
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Reads the ObjectName
from the source-level metadata associated
with the managed resource's Class
.
managedBean | the bean that will be exposed under the
returned ObjectName |
---|---|
beanKey | the key associated with this bean in the beans map
passed to the MBeanExporter |
ObjectName
instanceMalformedObjectNameException |
---|
Set the implementation of the JmxAttributeSource
interface to use
when reading the source-level metadata.
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.