[강운덕] [LUCYSUS-1744] 클래스 로더 분리를 위해서 Trace를 인터페이스로 분리.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@1359 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Woonduk Kang
2013-03-27 06:18:05 +00:00
parent 1df9d3613c
commit 40c79386e6
7 changed files with 543 additions and 430 deletions
@@ -51,6 +51,14 @@ public class TomcatProfiler implements ClassFileTransformer {
}
// 이게 로드할 lib List임.
List<URL> libUrlList = resolveLib(classPathResolver);
AgentClassLoader agentClassLoader = new AgentClassLoader(libUrlList.toArray(new URL[libUrlList.size()]));
agentClassLoader.setBootClass("com.profiler.boot.BootClassTest");
try {
agentClassLoader.boot();
} catch (Exception e) {
logger.info("test error");
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
}
try {
ProfilerConfig profilerConfig = readConfig(classPathResolver);