Top Description Constructors Methods
org.springframework.jmx.support

public final Class ObjectNameManager

extends Object
Class Inheritance
Imports
java.util.Hashtable, javax.management.MalformedObjectNameException, .ObjectName

Helper class for the creation of javax.management.ObjectName instances.
Authors
Rob Harrop, Juergen Hoeller
Since
1.2
See Also
javax.management.ObjectName#getInstance(String)

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ObjectName

Returns:

the ObjectName instance
getInstance
(Object
the name in ObjectName or String format
name
)

Retrieve the ObjectName instance corresponding to the supplied name.

public static ObjectName

Returns:

the ObjectName instance
getInstance
(String
the ObjectName in String format
objectName
)

Retrieve the ObjectName instance corresponding to the supplied name.

public static ObjectName

Returns:

the ObjectName instance
getInstance
(String
the domain name for the ObjectName
domainName
,
String
the key for the single property in the ObjectName
key
,
String
the value for the single property in the ObjectName
value
)

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

public static ObjectName

Returns:

the ObjectName instance
getInstance
(String
the domain name for the ObjectName
domainName
,
Hashtable<String, String>
the properties for the ObjectName
properties
)

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ObjectNameManagerback to summary
private ObjectNameManager()

Method Detail

getInstanceback to summary
public static ObjectName getInstance(Object name) throws MalformedObjectNameException

Retrieve the ObjectName instance corresponding to the supplied name.

Parameters
name:Object

the name in ObjectName or String format

Returns:ObjectName

the ObjectName instance

Exceptions
MalformedObjectNameException:
in case of an invalid object name specification
See Also
ObjectName#ObjectName(String), ObjectName#getInstance(String)
getInstanceback to summary
public static ObjectName getInstance(String objectName) throws MalformedObjectNameException

Retrieve the ObjectName instance corresponding to the supplied name.

Parameters
objectName:String

the ObjectName in String format

Returns:ObjectName

the ObjectName instance

Exceptions
MalformedObjectNameException:
in case of an invalid object name specification
See Also
ObjectName#ObjectName(String), ObjectName#getInstance(String)
getInstanceback to summary
public static ObjectName getInstance(String domainName, String key, String value) throws MalformedObjectNameException

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

Parameters
domainName:String

the domain name for the ObjectName

key:String

the key for the single property in the ObjectName

value:String

the value for the single property in the ObjectName

Returns:ObjectName

the ObjectName instance

Exceptions
MalformedObjectNameException:
in case of an invalid object name specification
See Also
ObjectName#ObjectName(String, String, String), ObjectName#getInstance(String, String, String)
getInstanceback to summary
public static ObjectName getInstance(String domainName, Hashtable<String, String> properties) throws MalformedObjectNameException

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

Parameters
domainName:String

the domain name for the ObjectName

properties:Hashtable<String, String>

the properties for the ObjectName

Returns:ObjectName

the ObjectName instance

Exceptions
MalformedObjectNameException:
in case of an invalid object name specification
See Also
ObjectName#ObjectName(String, java.util.Hashtable), ObjectName#getInstance(String, java.util.Hashtable)