Skip to content

Commit

Permalink
应用部署在发行版tomcat的支持
Browse files Browse the repository at this point in the history
Signed-off-by: Yaxx19 <[email protected]>
  • Loading branch information
Yaxx19 committed Jun 4, 2024
1 parent b110d00 commit a972311
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package io.sermant.core.plugin.agent.enhance;public class AbstractClassLoaderInterceptor {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package io.sermant.core.plugin.agent.enhance;

import io.sermant.core.plugin.agent.declarer.AbstractPluginDeclarer;
import io.sermant.core.plugin.agent.declarer.InterceptDeclarer;
import io.sermant.core.plugin.agent.matcher.ClassMatcher;

/**
* Tomcat ClassLoader 增强
*
* @author Yaxx19
* @since 2024-06-04
*/
public class TomcatClassLoaderDeclarer extends AbstractPluginDeclarer {

private static final String TOMCAT_CLASS_LOADER = "org.apache.catalina.loader.WebappClassLoaderBase";

@Override
public ClassMatcher getClassMatcher() {
return ClassMatcher.nameEquals(TOMCAT_CLASS_LOADER);
}

@Override
public InterceptDeclarer[] getInterceptDeclarers(ClassLoader classLoader) {
return new InterceptDeclarer[0];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package io.sermant.core.plugin.agent.enhance;public class WebappClassLoaderGetResourceAsStreamInterceptor {
}

0 comments on commit a972311

Please sign in to comment.