As I extend Spring JMX, I'll demonstrate each of the three areas of concern with a simple use case: an example service with start and stop methods and a read-write attribute to be managed.
在扩展Spring JMX时,我将用一个简单的案例分别展示这三个需要关注的领域:一个带有开始和停止方法并且有一个读写属性要管理的示例服务。
I conclude the article with a working example based on a mockup service object with both start and stop methods and a read-write attribute to be managed.
文章的最后是一个基于mockup服务对象的实际例子,需要管理它的启动和停止方法和读写属性。
Lines 41 through 50: implement the getter and setter methods for the read-write age attribute.
第41至50行:实现读写age属性的getter和setter方法。
应用推荐