Package org.springframework.jmx.support
Class ObjectNameManager
java.lang.Object
org.springframework.jmx.support.ObjectNameManager
Helper class for the creation of
ObjectName
instances.- Since:
- 1.2
- Author:
- Rob Harrop, Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectName
getInstance
(Object objectName) Retrieve theObjectName
instance corresponding to the supplied name.static ObjectName
getInstance
(String objectName) Retrieve theObjectName
instance corresponding to the supplied name.static ObjectName
getInstance
(String domainName, String key, String value) Retrieve anObjectName
instance for the specified domain and a single property with the supplied key and value.static ObjectName
getInstance
(String domainName, Hashtable<String, String> properties) Retrieve anObjectName
instance with the specified domain name and the supplied key/name properties.
-
Method Details
-
getInstance
Retrieve theObjectName
instance corresponding to the supplied name.- Parameters:
objectName
- theObjectName
inObjectName
orString
format- Returns:
- the
ObjectName
instance - Throws:
MalformedObjectNameException
- in case of an invalid object name specification- See Also:
-
getInstance
Retrieve theObjectName
instance corresponding to the supplied name.- Parameters:
objectName
- theObjectName
inString
format- Returns:
- the
ObjectName
instance - Throws:
MalformedObjectNameException
- in case of an invalid object name specification- See Also:
-
getInstance
public static ObjectName getInstance(String domainName, String key, String value) throws MalformedObjectNameException Retrieve anObjectName
instance for the specified domain and a single property with the supplied key and value.- Parameters:
domainName
- the domain name for theObjectName
key
- the key for the single property in theObjectName
value
- the value for the single property in theObjectName
- Returns:
- the
ObjectName
instance - Throws:
MalformedObjectNameException
- in case of an invalid object name specification- See Also:
-
getInstance
public static ObjectName getInstance(String domainName, Hashtable<String, String> properties) throws MalformedObjectNameExceptionRetrieve anObjectName
instance with the specified domain name and the supplied key/name properties.- Parameters:
domainName
- the domain name for theObjectName
properties
- the properties for theObjectName
- Returns:
- the
ObjectName
instance - Throws:
MalformedObjectNameException
- in case of an invalid object name specification- See Also:
-