Top Description Methods
org.springframework.jmx.export.naming

public Interface ObjectNamingStrategy

Known Direct Implementers
org.springframework.jmx.export.naming.IdentityNamingStrategy, org.springframework.jmx.export.naming.KeyNamingStrategy, org.springframework.jmx.export.naming.MetadataNamingStrategy
Annotations
@FunctionalInterface
Imports
javax.management.MalformedObjectNameException, .ObjectName, org.springframework.lang.Nullable

Strategy interface that encapsulates the creation of ObjectName instances.

Used by the MBeanExporter to obtain ObjectNames when registering beans.

Author
Rob Harrop
Since
1.2
See Also
org.springframework.jmx.export.MBeanExporter, javax.management.ObjectName

Method Summary

Modifier and TypeMethod and Description
public ObjectName

Returns:

the ObjectName instance
getObjectName
(Object
the bean that will be exposed under the returned ObjectName
managedBean
,
String
the key associated with this bean in the beans map passed to the MBeanExporter
beanKey
)

Obtain an ObjectName for the supplied bean.

Method Detail

getObjectNameback to summary
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException

Obtain an ObjectName for the supplied bean.

Parameters
managedBean:Object

the bean that will be exposed under the returned ObjectName

beanKey:String

the key associated with this bean in the beans map passed to the MBeanExporter

Returns:ObjectName

the ObjectName instance

Exceptions
MalformedObjectNameException:
if the resulting ObjectName is invalid