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);
}
Aggregations