use of com.navercorp.pinpoint.test.rpc.MockRpcModule in project pinpoint by naver.
the class OverrideModuleFactory method newModule.
@Override
public Module newModule(AgentOption agentOption) {
DefaultProfilerConfig profilerConfig = (DefaultProfilerConfig) agentOption.getProfilerConfig();
profilerConfig.setTransportModule(TransportModule.THRIFT.name());
ModuleFactory moduleFactory = new ApplicationContextModuleFactory() {
@Override
protected Module newRpcModule(AgentOption agentOption) {
logger.info("load {}", MockRpcModule.class.getName());
return new MockRpcModule();
}
};
Module module = moduleFactory.newModule(agentOption);
return Modules.override(module).with(overrideModule);
}
Aggregations