Search in sources :

Example 1 with ModuleFactoryResolver

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

the class DefaultAgent method newApplicationContext.

protected ApplicationContext newApplicationContext(AgentOption agentOption) {
    Objects.requireNonNull(agentOption, "agentOption");
    ProfilerConfig profilerConfig = Objects.requireNonNull(agentOption.getProfilerConfig(), "profilerConfig");
    ModuleFactoryResolver moduleFactoryResolver = new DefaultModuleFactoryResolver(profilerConfig.getInjectionModuleFactoryClazzName());
    ModuleFactory moduleFactory = moduleFactoryResolver.resolve();
    return new DefaultApplicationContext(agentOption, moduleFactory);
}
Also used : ModuleFactory(com.navercorp.pinpoint.profiler.context.module.ModuleFactory) DefaultApplicationContext(com.navercorp.pinpoint.profiler.context.module.DefaultApplicationContext) ProfilerConfig(com.navercorp.pinpoint.bootstrap.config.ProfilerConfig) DefaultModuleFactoryResolver(com.navercorp.pinpoint.profiler.context.module.DefaultModuleFactoryResolver) ModuleFactoryResolver(com.navercorp.pinpoint.profiler.context.module.ModuleFactoryResolver) DefaultModuleFactoryResolver(com.navercorp.pinpoint.profiler.context.module.DefaultModuleFactoryResolver)

Aggregations

ProfilerConfig (com.navercorp.pinpoint.bootstrap.config.ProfilerConfig)1 DefaultApplicationContext (com.navercorp.pinpoint.profiler.context.module.DefaultApplicationContext)1 DefaultModuleFactoryResolver (com.navercorp.pinpoint.profiler.context.module.DefaultModuleFactoryResolver)1 ModuleFactory (com.navercorp.pinpoint.profiler.context.module.ModuleFactory)1 ModuleFactoryResolver (com.navercorp.pinpoint.profiler.context.module.ModuleFactoryResolver)1