<< Back to previous view

[JMX-8] Extend java.jmx to support exposing operations in created beans Created: 31/Aug/12  Updated: 17/Jun/14

Status: Open
Project: java.jmx
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Chris Jeris Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None

Attachments: Text File JMX-8.patch    
Patch: Code and Test


The attached patch extends java.jmx to support creating beans that expose invokable operations. Operation function definitions are supplied after the state-ref in the create-bean form in a syntax similar to protocol method implementations. Type signatures, descriptions, and impact constants are harvested from metadata on the operation definitions. Nontrivial argument type binders (rest arguments, destructuring, etc) in operations are not supported.

I am sure this patch could be improved in many ways; the operation method parser in create-bean feels unnecessarily hairy and yet limited at the same time, because my macro-fu is not yet strong. The documentation examples are not yet updated, though I am happy to do this if the feature is reviewed and accepted.

Comment by Howard Lewis Ship [ 17/Jun/14 9:59 AM ]

I've done something similar internally, and would love to see some approach to exposing operations as an official part of the library.

Generated at Tue Dec 01 01:38:30 CST 2015 using JIRA 4.4#649-r158309.