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 ObjectNamegetInstance(Object name) Retrieve theObjectNameinstance corresponding to the supplied name.static ObjectNamegetInstance(String objectName) Retrieve theObjectNameinstance corresponding to the supplied name.static ObjectNamegetInstance(String domainName, String key, String value) Retrieve anObjectNameinstance for the specified domain and a single property with the supplied key and value.static ObjectNamegetInstance(String domainName, Hashtable<String, String> properties) Retrieve anObjectNameinstance with the specified domain name and the supplied key/name properties.
-
Method Details
-
getInstance
Retrieve theObjectNameinstance corresponding to the supplied name.- Parameters:
name- the name inObjectNameorStringformat- Returns:
- the
ObjectNameinstance - Throws:
MalformedObjectNameException- in case of an invalid object name specification- See Also:
-
getInstance
Retrieve theObjectNameinstance corresponding to the supplied name.- Parameters:
objectName- theObjectNameinStringformat- Returns:
- the
ObjectNameinstance - 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 anObjectNameinstance for the specified domain and a single property with the supplied key and value.- Parameters:
domainName- the domain name for theObjectNamekey- the key for the single property in theObjectNamevalue- the value for the single property in theObjectName- Returns:
- the
ObjectNameinstance - 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 anObjectNameinstance with the specified domain name and the supplied key/name properties.- Parameters:
domainName- the domain name for theObjectNameproperties- the properties for theObjectName- Returns:
- the
ObjectNameinstance - Throws:
MalformedObjectNameException- in case of an invalid object name specification- See Also:
-