use of com.navercorp.pinpoint.profiler.instrument.classpool.NamedClassPool in project pinpoint by naver.
the class HierarchyMultipleClassPoolTest method testGetClassPool.
@Test
public void testGetClassPool() throws Exception {
NamedClassPool cp = new NamedClassPool("test");
HierarchyMultipleClassPool multipleClassPool = new HierarchyMultipleClassPool(cp);
ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
NamedClassPool classPool = multipleClassPool.getClassPool(systemClassLoader);
CtClass string = classPool.get("java.lang.String");
logger.debug("{}", string);
}
Aggregations