Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
9eb93842
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9eb93842
编写于
1月 24, 2013
作者:
A
alanb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8006524: JSR-3: Allows java.beans to be optional
Reviewed-by: dfuchs, mchung
上级
ec91f18e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
7 deletion
+16
-7
src/share/classes/javax/management/MXBean.java
src/share/classes/javax/management/MXBean.java
+8
-0
src/share/classes/javax/management/monitor/package.html
src/share/classes/javax/management/monitor/package.html
+8
-7
未找到文件。
src/share/classes/javax/management/MXBean.java
浏览文件 @
9eb93842
...
...
@@ -907,6 +907,14 @@ public interface ModuleMXBean {
<li><p>Otherwise, <em>J</em> is not reconstructible.</p></li>
</ol>
<p>Rule 2 is not applicable to subset Profiles of Java SE that do not
include the {@code java.beans} package. When targeting a runtime that does
not include the {@code java.beans} package, and where there is a mismatch
between the compile-time and runtime environment whereby <em>J</em> is
compiled with a public constructor and the {@code ConstructorProperties}
annotation, then <em>J</em> is not reconstructible unless another rule
applies.</p>
<p>Here are examples showing different ways to code a type {@code
NamedNumber} that consists of an {@code int} and a {@code
String}. In each case, the {@code CompositeType} looks like this:</p>
...
...
src/share/classes/javax/management/monitor/package.html
浏览文件 @
9eb93842
...
...
@@ -60,19 +60,20 @@ questions.
<i>
v
</i>
. A value
<i>
x
</i>
is extracted from
<i>
v
</i>
as follows:
</p>
<ul>
<li>
If
<i>
v
</i>
is a {@link javax.management.openmbean.CompositeData
CompositeData} and if
<i>
v
</i>
.{@link
javax.management.openmbean.CompositeData#get(String) get}(
<i>
e
</i>
)
returns a value then
<i>
x
</i>
is that value.
</li>
<li>
If
<i>
v
</i>
is an array and
<i>
e
</i>
is the string
<tt>
"length"
</tt>
then
<i>
x
</i>
is the length of the array.
</li>
<li>
If the above rules do not produce a value, and if {@link
java.beans.Introspector#getBeanInfo(Class) Introspector.getBeanInfo}
for the class of
<i>
v
</i>
(
<i>
v
</i>
.
<tt>
getClass()
</tt>
) contains a
{@link java.beans.PropertyDescriptor PropertyDescriptor} with the name
<i>
e
</i>
, then
<i>
x
</i>
is the result of calling the property's {@link
java.beans.PropertyDescriptor#getReadMethod() read method} on
<i>
v
</i>
.
</li>
<li>
If the above rules do not produce a value, and if introspection, as
if by calling {@link java.beans.Introspector#getBeanInfo(Class)
Introspector.getBeanInfo}, for the class of
<i>
v
</i>
(
<i>
v
</i>
.
<tt>
getClass()
</tt>
) identifies a property with the name
<i>
e
</i>
, then
<i>
x
</i>
is the result of reading the property value.
</li>
</ul>
<p>
The third rule means for example that if the attribute
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录