Search in sources :

Example 1 with InterceptorRegistryModule

use of com.navercorp.pinpoint.profiler.context.module.InterceptorRegistryModule in project pinpoint by naver.

the class MockTraceContextFactory method newMockApplicationContext.

public static DefaultApplicationContext newMockApplicationContext(ProfilerConfig profilerConfig) {
    Module loggingModule = new LoggingModule();
    InterceptorRegistryBinder interceptorRegistryBinder = new EmptyInterceptorRegistryBinder();
    Module interceptorRegistryModule = InterceptorRegistryModule.wrap(interceptorRegistryBinder);
    ModuleFactory moduleFactory = new OverrideModuleFactory(loggingModule, interceptorRegistryModule);
    MockApplicationContextFactory factory = new MockApplicationContextFactory();
    return factory.build(profilerConfig, moduleFactory);
}
Also used : OverrideModuleFactory(com.navercorp.pinpoint.profiler.context.module.OverrideModuleFactory) ModuleFactory(com.navercorp.pinpoint.profiler.context.module.ModuleFactory) InterceptorRegistryBinder(com.navercorp.pinpoint.profiler.interceptor.registry.InterceptorRegistryBinder) OverrideModuleFactory(com.navercorp.pinpoint.profiler.context.module.OverrideModuleFactory) Module(com.google.inject.Module) InterceptorRegistryModule(com.navercorp.pinpoint.profiler.context.module.InterceptorRegistryModule) AbstractModule(com.google.inject.AbstractModule)

Aggregations

AbstractModule (com.google.inject.AbstractModule)1 Module (com.google.inject.Module)1 InterceptorRegistryModule (com.navercorp.pinpoint.profiler.context.module.InterceptorRegistryModule)1 ModuleFactory (com.navercorp.pinpoint.profiler.context.module.ModuleFactory)1 OverrideModuleFactory (com.navercorp.pinpoint.profiler.context.module.OverrideModuleFactory)1 InterceptorRegistryBinder (com.navercorp.pinpoint.profiler.interceptor.registry.InterceptorRegistryBinder)1