Search in sources :

Example 1 with ScopeFactory

use of com.navercorp.pinpoint.profiler.instrument.ScopeFactory in project pinpoint by naver.

the class InstrumentEngineProvider method get.

public InstrumentEngine get() {
    final String instrumentEngine = instrumentConfig.getProfileInstrumentEngine().toUpperCase();
    if (InstrumentConfig.INSTRUMENT_ENGINE_ASM.equals(instrumentEngine)) {
        logger.info("ASM InstrumentEngine");
        // WARNING must be singleton
        final InterceptorDefinitionFactory interceptorDefinitionFactory = new InterceptorDefinitionFactory();
        // WARNING must be singleton
        final ScopeFactory scopeFactory = new ScopeFactory();
        EngineComponent engineComponent = new DefaultEngineComponent(objectBinderFactory, interceptorRegistryBinder, interceptorDefinitionFactory, apiMetaDataServiceProvider, scopeFactory);
        return new ASMEngine(instrumentation, engineComponent);
    } else {
        logger.warn("Unknown InstrumentEngine:{}", instrumentEngine);
        throw new IllegalArgumentException("Unknown InstrumentEngine:" + instrumentEngine);
    }
}
Also used : DefaultEngineComponent(com.navercorp.pinpoint.profiler.instrument.DefaultEngineComponent) ASMEngine(com.navercorp.pinpoint.profiler.instrument.ASMEngine) ScopeFactory(com.navercorp.pinpoint.profiler.instrument.ScopeFactory) InterceptorDefinitionFactory(com.navercorp.pinpoint.profiler.instrument.interceptor.InterceptorDefinitionFactory) EngineComponent(com.navercorp.pinpoint.profiler.instrument.EngineComponent) DefaultEngineComponent(com.navercorp.pinpoint.profiler.instrument.DefaultEngineComponent)

Aggregations

ASMEngine (com.navercorp.pinpoint.profiler.instrument.ASMEngine)1 DefaultEngineComponent (com.navercorp.pinpoint.profiler.instrument.DefaultEngineComponent)1 EngineComponent (com.navercorp.pinpoint.profiler.instrument.EngineComponent)1 ScopeFactory (com.navercorp.pinpoint.profiler.instrument.ScopeFactory)1 InterceptorDefinitionFactory (com.navercorp.pinpoint.profiler.instrument.interceptor.InterceptorDefinitionFactory)1