avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Mortenson <l...@tanukisoftware.com>
Subject Commit: Simplified use of AbstractInstrumentable.
Date Mon, 22 Apr 2002 06:47:22 GMT
I modified the AbstractInstrumentable class so that the Instrumentable
methods no longer
need to be implemented by classes wishing to implement Instrumentable.
The Instruments
and child Instrumentables are now registered using utility methods:
addInstrument and
addChildInstrumentable. This makes code like the following possible in
the constructor:

public UserClass() {
// Initialize the Instruments
addInstrument(m_loadTime = new ValueInstrument("load-time"));
}

Much easier. But anyone using the AbstractInstrumentable or
AbstractLogEnabledInstrumentable classes right now are going to have to
modify their
code. An easy change. But sorry for the hassle.

Let me know if you have any comments,

Cheers,
Leif


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message