On Monday 01 March 2004 05:51, Cameron Fieber wrote:
I have an initial version of a facility to create MBeans for components. (source is currently at: http://remsats1.hpr.for.gov.bc.ca/jmx-facility.tar.gz)
It is working so far in my limited testing.
I am looking at the code and I am somewhat suspicious about traversing the model on every event.
IIUIC, there will be a CompositionEvent for every instance added/removed, so that you should probably not traverse the model if the CompositionEvent is for a ContainmentModel.
Stephen, isn't that so?
Have not looked at the code yet - but basically a facility would do the following:
(a) on deployment, do scan of the model to locate component models
its is interested in, and secondly, register a composition event
listener to capture info about model structural changes (b) on a composition event - just check the model that is added
(or handle updating is something is removed) - no need to rescanStephen.
Niclas
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
