类 ObjectNameManager
- java.lang.Object
- org.springframework.jmx.support.ObjectNameManager
public class ObjectNameManager extends Object
Helper class for the creation ofObjectName
instances.- 从以下版本开始:
- 1.2
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
ObjectName.getInstance(String)
构造器概要
构造器 构造器 说明 ObjectNameManager()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static 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.
构造器详细资料
ObjectNameManager
public ObjectNameManager()
方法详细资料
getInstance
public static ObjectName getInstance(Object objectName) throws MalformedObjectNameException
Retrieve theObjectName
instance corresponding to the supplied name.- 参数:
objectName
- theObjectName
inObjectName
orString
format- 返回:
- the
ObjectName
instance - 抛出:
MalformedObjectNameException
- in case of an invalid object name specification- 另请参阅:
ObjectName(String)
,ObjectName.getInstance(String)
getInstance
public static ObjectName getInstance(String objectName) throws MalformedObjectNameException
Retrieve theObjectName
instance corresponding to the supplied name.- 参数:
objectName
- theObjectName
inString
format- 返回:
- the
ObjectName
instance - 抛出:
MalformedObjectNameException
- in case of an invalid object name specification- 另请参阅:
ObjectName(String)
,ObjectName.getInstance(String)
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.- 参数:
domainName
- the domain name for theObjectName
key
- the key for the single property in theObjectName
value
- the value for the single property in theObjectName
- 返回:
- the
ObjectName
instance - 抛出:
MalformedObjectNameException
- in case of an invalid object name specification- 另请参阅:
ObjectName(String, String, String)
,ObjectName.getInstance(String, String, String)
getInstance
public static ObjectName getInstance(String domainName, Hashtable<String,String> properties) throws MalformedObjectNameException
Retrieve anObjectName
instance with the specified domain name and the supplied key/name properties.- 参数:
domainName
- the domain name for theObjectName
properties
- the properties for theObjectName
- 返回:
- the
ObjectName
instance - 抛出:
MalformedObjectNameException
- in case of an invalid object name specification- 另请参阅:
ObjectName(String, java.util.Hashtable)
,ObjectName.getInstance(String, java.util.Hashtable)