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