java命名空间javax.management.openmbean类openmbeanattributeinfosupport的类成员方法:
openmbeanattributeinfosupport定义及介绍
本文导语:
openmbeanattributeinfosupport
public openmbeanattributeinfosupport(string name,
string description,
opentype opentype,
boolean isreadable,
boolean...
openmbeanattributeinfosupport
public openmbeanattributeinfosupport(string name,
string description,
opentype opentype,
boolean isreadable,
boolean iswritable,
boolean isis,
t defaultvalue)
throws opendataexception
- 构造一个
openmbeanattributeinfosupport 实例,该实例使用指定的 name、opentype、description、defaultvalue,以及制定的读/写访问属性来描述 open mbean 的属性。
- 类型参数:
t - 允许编译器查看 defaultvalue(如果不为 null)是否具有对应 opentype 的正确 java 类型。- 参数:
name - 不可以为 null 或空字符串。description - 不可以为 null 或空字符串。opentype - 不可以为 null。isreadable - 如果该属性有一个为了便于管理而公开的获取方法,则此参数为 true。iswritable - 如果该属性有一个为了便于管理而公开的设置方法,则此参数为 true。isis - 如果该属性的获取方法的形式是 isxxx,则此参数为 true。defaultvalue - 必须是为此属性指定的 @code
opentype} 的有效值;默认值不支持 arraytype 和 tabulartype;可以为 null,在这种情况下,它意味着不设置任何默认值。
- 抛出:
illegalargumentexception - 如果 name 或 description 为 null 或空字符串,或者 opentype 为 null。
opendataexception - 如果 defaultvalue 不是指定 opentype 的有效值,或者 defaultvalue 不为 null 且 opentype 为 arraytype 或 tabulartype。