/** * Instrumentable to be registered with the instrument manager. Should be * called whenever an Instrumentable is created. The '.' character is * used to denote a child Instrumentable and can be used to register the * instrumentable at a specific point in an instrumentable hierarchy. * * @param instrumentable Instrumentable to register with the InstrumentManager. * @param instrumentableName The name to use when registering the Instrumentable. * * @throws Exception If there were any problems registering the Instrumentable. */ public void registerInstrumentable( Instrumentable instrumentable, String instrumentableName ) throws Exception { m_instrumentManager.registerInstrumentable( instrumentable, instrumentableName ); } }
instrumentManager.registerInstrumentable( this, "servlets." + getInstrumentableName() );
instrumentManager.registerInstrumentable( this, "servlets." + getInstrumentableName() );
m_instrumentManager.registerInstrumentable( handler, handleInstName );
/** * Assign the instrumentables and InstrumentManageables */ public void create( final Object object, final Context context ) throws Exception { if ( m_instrumentEnabled && object instanceof Instrumentable ) { final String instrumentableName = (String) context.get( "component.name" ); final Instrumentable instrumentable = (Instrumentable) object; instrumentable.setInstrumentableName( instrumentableName ); // Get the name from the instrumentable in case it was changed since being set above. m_instrumentManager.registerInstrumentable( instrumentable, instrumentable.getInstrumentableName() ); } if ( m_instrumentEnabled && object instanceof InstrumentManageable ) { ( (InstrumentManageable) object ).setInstrumentManager( m_instrumentManager ); } } }
m_instrumentManager.registerInstrumentable( this, m_instrumentableName ); m_instrumentManager.registerInstrumentable( handler, handleInstName ); m_instrumentManager.registerInstrumentable( handler, handleInstName );
m_instrumentManager.registerInstrumentable( instrumentable, name );
m_instrumentManager.registerInstrumentable( instrumentable, name );
m_instrumentManager.registerInstrumentable( (Instrumentable)component, m_instrumentableName );