public final class ObjectNameManager extends Object
ObjectName
instances.ObjectName.getInstance(String)
Modifier and Type | Method and Description |
---|---|
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. |
static ObjectName |
getInstance(String domainName,
Hashtable<String,String> properties)
Retrieve an
ObjectName instance with the specified domain name
and the supplied key/name properties. |
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. |
public static ObjectName getInstance(Object objectName) throws MalformedObjectNameException
ObjectName
instance corresponding to the supplied name.objectName
- the ObjectName
in ObjectName
or
String
formatObjectName
instanceMalformedObjectNameException
- in case of an invalid object name specificationObjectName(String)
,
ObjectName.getInstance(String)
public static ObjectName getInstance(String objectName) throws MalformedObjectNameException
ObjectName
instance corresponding to the supplied name.objectName
- the ObjectName
in String
formatObjectName
instanceMalformedObjectNameException
- in case of an invalid object name specificationObjectName(String)
,
ObjectName.getInstance(String)
public static ObjectName getInstance(String domainName, String key, String value) throws MalformedObjectNameException
ObjectName
instance for the specified domain and a
single property with the supplied key and value.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
ObjectName
instanceMalformedObjectNameException
- in case of an invalid object name specificationObjectName(String, String, String)
,
ObjectName.getInstance(String, String, String)
public static ObjectName getInstance(String domainName, Hashtable<String,String> properties) throws MalformedObjectNameException
ObjectName
instance with the specified domain name
and the supplied key/name properties.domainName
- the domain name for the ObjectName
properties
- the properties for the ObjectName
ObjectName
instanceMalformedObjectNameException
- in case of an invalid object name specificationObjectName(String, java.util.Hashtable)
,
ObjectName.getInstance(String, java.util.Hashtable)