spring-framework / org.springframework.jmx.export.naming

Package org.springframework.jmx.export.naming

Types

IdentityNamingStrategy

open class IdentityNamingStrategy : ObjectNamingStrategy

An implementation of the ObjectNamingStrategy interface that creates a name based on the identity of a given instance.

The resulting ObjectName will be in the form package:class=class name,hashCode=identity hash (in hex)

KeyNamingStrategy

open class KeyNamingStrategy : ObjectNamingStrategy, InitializingBean

ObjectNamingStrategy implementation that builds ObjectName instances from the key used in the "beans" map passed to MBeanExporter.

Can also check object name mappings, given as Properties or as mappingLocations of properties files. The key used to look up is the key used in MBeanExporter's "beans" map. If no mapping is found for a given key, the key itself is used to build an ObjectName.

MetadataNamingStrategy

open class MetadataNamingStrategy : ObjectNamingStrategy, InitializingBean

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, org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource introspects a well-defined set of Java 5 annotations that come with Spring.

SelfNaming

interface SelfNaming

Interface that allows infrastructure components to provide their own ObjectNames to the MBeanExporter.

Note: This interface is mainly intended for internal usage.