leif 02/04/29 09:32:23
Modified:
instrument-manager/src/java/org/apache/avalon/excalibur/instrument/component
InstrumentDefaultComponentFactory.java
Log:
Fix a problem where the name of a root instrumentable was not being set for
Instrumentables created by the ICM
Revision Changes Path
1.5 +5 -2
jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/avalon/excalibur/instrument/component/InstrumentDefaultComponentFactory.java
Index: InstrumentDefaultComponentFactory.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/instrument-manager/src/java/org/apache/avalon/excalibur/instrument/component/InstrumentDefaultComponentFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- InstrumentDefaultComponentFactory.java 3 Apr 2002 13:18:29 -0000
1.4
+++ InstrumentDefaultComponentFactory.java 29 Apr 2002 16:32:23 -0000
1.5
@@ -21,7 +21,7 @@
* Factory for Avalon Instrumentable components.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Leif Mortenson</a>
- * @version CVS $Revision: 1.4 $ $Date: 2002/04/03 13:18:29 $
+ * @version CVS $Revision: 1.5 $ $Date: 2002/04/29 16:32:23 $
* @since 4.0
*/
public class InstrumentDefaultComponentFactory
@@ -92,8 +92,11 @@
{
if( component instanceof Instrumentable )
{
- getLogger().debug( "Doing instrument setup for: " + component );
+ Instrumentable instrumentable = (Instrumentable)component;
+ getLogger().debug( "Doing instrument setup for: " +
instrumentable );
+
+ instrumentable.setInstrumentableName( m_instrumentableName );
m_instrumentManager.registerInstrumentable(
(Instrumentable)component, m_instrumentableName );
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>