public final void setInstrumentableName( final String name ) { if ( m_delegateFactory instanceof Instrumentable ) { ( (Instrumentable) m_delegateFactory ).setInstrumentableName( name ); } }
/** * 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 ); } } }
instrumentable.setInstrumentableName( m_instrumentableName );