public interface DescriptorAccess extends DescriptorRead
ModelMBeans在ModelMBeanInfo类中广泛使用此接口。
Modifier and Type | Method and Description |
---|---|
void |
setDescriptor(Descriptor inDescriptor)
设置描述符(全替换)。
|
getDescriptor
void setDescriptor(Descriptor inDescriptor)
inDescriptor
- 替换与实现此接口的组件相关联的描述符。
如果inDescriptor对于正在设置的Info对象的类型无效,则抛出异常。
如果inDescriptor为空,则描述符将恢复为其默认值,该值应至少包含描述符名称和descriptorType。
DescriptorRead.getDescriptor()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.