public class

ObjectNameManager

extends Object
java.lang.Object
   ↳ org.springframework.jmx.support.ObjectNameManager

Class Overview

Helper class for the creation of javax.management.ObjectName instances.

Summary

Public Constructors
ObjectNameManager()
Public Methods
static ObjectName getInstance(String domainName, String key, String value)
Retrieve an ObjectName instance for the specified domain and a single property with the supplied key and value.
static ObjectName getInstance(String domainName, Hashtable<StringString> properties)
Retrieve an ObjectName instance with the specified domain name and the supplied key/name properties.
static ObjectName getInstance(Object objectName)
Retrieve the ObjectName instance corresponding to the supplied name.
static ObjectName getInstance(String objectName)
Retrieve the ObjectName instance corresponding to the supplied name.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ObjectNameManager ()

Public Methods

public static ObjectName getInstance (String domainName, String key, String value)

Retrieve an ObjectName instance for the specified domain and a single property with the supplied key and value.

Parameters
domainName the domain name for the ObjectName
key the key for the single property in the ObjectName
value the value for the single property in the ObjectName
Returns
  • the ObjectName instance
Throws
MalformedObjectNameException in case of an invalid object name specification

public static ObjectName getInstance (String domainName, Hashtable<StringString> properties)

Retrieve an ObjectName instance with the specified domain name and the supplied key/name properties.

Parameters
domainName the domain name for the ObjectName
properties the properties for the ObjectName
Returns
  • the ObjectName instance
Throws
MalformedObjectNameException in case of an invalid object name specification

public static ObjectName getInstance (Object objectName)

Retrieve the ObjectName instance corresponding to the supplied name.

Parameters
objectName the ObjectName in ObjectName or String format
Returns
  • the ObjectName instance
Throws
MalformedObjectNameException in case of an invalid object name specification

public static ObjectName getInstance (String objectName)

Retrieve the ObjectName instance corresponding to the supplied name.

Parameters
objectName the ObjectName in String format
Returns
  • the ObjectName instance
Throws
MalformedObjectNameException in case of an invalid object name specification