| java.lang.Object org.springframework.jmx.export.naming.MetadataNamingStrategy
MetadataNamingStrategy | public class MetadataNamingStrategy implements ObjectNamingStrategy,InitializingBean(Code) | | 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,
two strategies are included:
AttributesJmxAttributeSource , for Commons Attributes
AnnotationJmxAttributeSource , for JDK 1.5+ annotations
author: Rob Harrop author: Juergen Hoeller since: 1.2 See Also: ObjectNamingStrategy |
MetadataNamingStrategy | public MetadataNamingStrategy(JmxAttributeSource attributeSource)(Code) | | Create a new MetadataNamingStrategy for the given
JmxAttributeSource .
Parameters: attributeSource - the JmxAttributeSource to use |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
setAttributeSource | public void setAttributeSource(JmxAttributeSource attributeSource)(Code) | | Set the implementation of the JmxAttributeSource interface to use
when reading the source-level metadata.
|
setDefaultDomain | public void setDefaultDomain(String defaultDomain)(Code) | | 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.
|
|
|