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,
org.
introspects a well-defined set of annotations that come with Spring.
ObjectNamingStrategy, org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource
| Modifier and Type | Field and Description |
|---|---|
| private JmxAttributeSource | attributeSource
The |
| private String | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public | MetadataNamingStrategy()
Create a new |
| public | MetadataNamingStrategy(JmxAttributeSource
the JmxAttributeSource to use attributeSource)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| public ObjectName | getObjectName(Object
the bean that will be exposed under the
returned managedBean, String ObjectNamethe key associated with this bean in the beans map
passed to the beanKey)MBeanExporterImplements org. Reads the |
| private static String | |
| public void | setAttributeSource(JmxAttributeSource attributeSource)
Set the implementation of the |
| public void | setDefaultDomain(String defaultDomain)
Specify the default domain to be used for generating ObjectNames when no source-level metadata has been specified. |
| private static boolean |
| attributeSource | back to summary |
|---|---|
| private JmxAttributeSource attributeSource The | |
| defaultDomain | back to summary |
|---|---|
| private String defaultDomain
| |
| QUOTABLE_CHARS | back to summary |
|---|---|
| private static final char[] QUOTABLE_CHARS | |
| MetadataNamingStrategy | back to summary |
|---|---|
| public MetadataNamingStrategy() Create a new | |
| MetadataNamingStrategy | back to summary |
|---|---|
| public MetadataNamingStrategy(JmxAttributeSource attributeSource) Create a new
| |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| getObjectName | back to summary |
|---|---|
| public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException Implements org. Reads the
| |
| quoteIfNecessary | back to summary |
|---|---|
| private static String quoteIfNecessary(String value) | |
| setAttributeSource | back to summary |
|---|---|
| public void setAttributeSource(JmxAttributeSource attributeSource) Set the implementation of 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. | |
| shouldQuote | back to summary |
|---|---|
| private static boolean shouldQuote(String value) | |