-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yaxx19 <[email protected]>
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...re/src/main/java/io/sermant/core/plugin/agent/enhance/AbstractClassLoaderInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
package io.sermant.core.plugin.agent.enhance;public class AbstractClassLoaderInterceptor { | ||
} |
26 changes: 26 additions & 0 deletions
26
...re-core/src/main/java/io/sermant/core/plugin/agent/enhance/WebappClassLoaderDeclarer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...io/sermant/core/plugin/agent/enhance/WebappClassLoaderGetResourceAsStreamInterceptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
package io.sermant.core.plugin.agent.enhance;public class WebappClassLoaderGetResourceAsStreamInterceptor { | ||
} |