spring-framework / org.springframework.jmx.support / ObjectNameManager / getInstance

getInstance

open static fun getInstance(objectName: Any): ObjectName

Retrieve the ObjectName instance corresponding to the supplied name.

Parameters

objectName - the ObjectName in ObjectName or String format

Exceptions

MalformedObjectNameException - in case of an invalid object name specification

Return
the ObjectName instance

See Also
ObjectName#ObjectName(String)ObjectName#getInstance(String)

open static fun getInstance(objectName: String): ObjectName

Retrieve the ObjectName instance corresponding to the supplied name.

Parameters

objectName - the ObjectName in String format

Exceptions

MalformedObjectNameException - in case of an invalid object name specification

Return
the ObjectName instance

See Also
ObjectName#ObjectName(String)ObjectName#getInstance(String)

open static fun getInstance(domainName: String, key: String, value: String): ObjectName

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

Exceptions

MalformedObjectNameException - in case of an invalid object name specification

Return
the ObjectName instance

See Also
ObjectName#ObjectName(String, String, String)ObjectName#getInstance(String, String, String)

open static fun getInstance(domainName: String, properties: Hashtable<String, String>): ObjectName

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

Exceptions

MalformedObjectNameException - in case of an invalid object name specification

Return
the ObjectName instance

See Also
ObjectName#ObjectName(String, java.util.Hashtable)ObjectName#getInstance(String, java.util.Hashtable)