[nanocontainer-scm] [jira] Assigned: (NANO-107) Implement a JMX visitor
jira-yCVjj/[email protected] Tue, 30 Nov 2004 03:55:11 -0500 (EST)
| Newsgroups | gmane.comp.java.nanocontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Message: The following issue has been re-assigned. Assignee: Michael Ward (mailto:[email protected]) --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/NANO-107 Here is an overview of the issue: --------------------------------------------------------------------- Key: NANO-107 Summary: Implement a JMX visitor Type: New Feature Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NanoContainer Components: jmx Fix Fors: 1.0-beta-3 Versions: 1.0-beta-3 Assignee: Michael Ward Reporter: Aslak Hellesoy Created: Fri, 15 Oct 2004 9:07 PM Updated: Tue, 30 Nov 2004 3:53 AM Description: JMX registration is currently handled by a MBeanComponentAdapter. A better approach would be to deprecate this class and implement a JMXVisitor that can traverse a tree of containers and register them in the JMX registry. The JMXVisitor would need to be previously configured with information about what components to register in JMX. Several strategies are possible: 1) Manual configuration. - Instantiate a JMXVisitor and call API methods on it. Something like: jmxVisitor.registerMbeanInfo(componentPath, mbeanInfo) This low level API would be used by the other approaces. 2) Groovy markup When encountering jmx() nodes, call the appropriate registerMbeanInfo methods on a jmxVisitor. At the end of the parsing of the Groovy markup, the visitor is configured. The last step would be to have it traverse the tree. 3) 1.5 Annotations JMX info could be encoded in annotations. A subclass of JMXVisitor (say AnnotationJMXVisitor) could look for annotations on components while traversing the pico tree. Using an approach like this would allow people to choose the approach they prefer: Groovy or Annotations. The Groovy jmx() nodes should be designed to be similar to the @jmx annotations. A similar approach could be used for nano-remoting. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira