I’'m currently working on intrumenting messenger with JMX and would like to intrument classes in org.dom4j.io and org.xmpp.* I have a utility class that makes this dead simple…
Meter m = Meter.getMeter("…");
// do something complex and time consuming.
There’'s another pice to this called a MeterObserver which takes the results from a Meter and pipes it out JMX land.
So the problem is, the Meter class lives in the Messenger project and I want to add it to the Whack project, but this adds a cycle between Whack and Messenger. There are two solutions, and possibly more, that I see.
Place the org.xmpp.* and org.dom4j.io.* classes in messenger making whack dependant on Messenger.
Create another project (I’'d like org.jivesoftware.management) and put all common files in there.
Please let me know what you think.