read-write property 读写属性
Cannot read a write-only property 不能读取只写属性
write-only property 只写属性
property-write Class 声明当前类有那些魔术方法可以设置属性
If the setter for a read-write property throws an exception (such as IllegalArgumentException), JMX reports the exception back to the client.
如果读写属性的setter抛出异常(例如IllegalArgumentException),JMX就把异常报告给客户机。
Actually exposing these as configuration fields, however, is not always completely trivial: the developers must choose property names, write documentation, handle types, and choose default values.
然而,将这些公开为配置字段并非都很简单:开发人员必须选择属性名称,编写文档,处理类型,以及选择默认值。
This method takes the name of the property with which it is associated and two callbacks to run when a script attempts to read or write the property.
这个方法需要被关联属性的名字和在脚本试图读写该属性时调用的两个回调函数。
应用推荐