frame plan
This commit is contained in:
parent
af5a4a4ad7
commit
2efcf0b5c8
|
|
@ -39,6 +39,10 @@ public class PressMonsterAgent {
|
|||
}
|
||||
|
||||
private static void initializeAgent(String agentArgs, Instrumentation inst) {
|
||||
// TODO 加载配置
|
||||
// TODO 加载插件jar
|
||||
// TODO 配置动态增强
|
||||
// TODO 启动核心服务
|
||||
long startTime = System.currentTimeMillis();
|
||||
try {
|
||||
logger.info("Press Monster Agent 开始初始化,参数:{}", agentArgs);
|
||||
|
|
|
|||
|
|
@ -1,13 +1,20 @@
|
|||
package io.github.kazusa.pressmonster.demo.agent;
|
||||
|
||||
import net.bytebuddy.agent.builder.AgentBuilder;
|
||||
import net.bytebuddy.implementation.MethodDelegation;
|
||||
import net.bytebuddy.matcher.ElementMatchers;
|
||||
// import org.springframework.web.bind.annotation.RestController; // 注释掉,避免ClassNotFoundException
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isAnnotatedWith;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isConstructor;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isDeclaredBy;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isStatic;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.nameContains;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.nameEndsWith;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.nameStartsWith;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.named;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.not;
|
||||
|
||||
import java.lang.instrument.Instrumentation;
|
||||
|
||||
import static net.bytebuddy.matcher.ElementMatchers.*;
|
||||
import net.bytebuddy.agent.builder.AgentBuilder;
|
||||
import net.bytebuddy.implementation.MethodDelegation;
|
||||
|
||||
/**
|
||||
* 简单Agent示例
|
||||
|
|
|
|||
Loading…
Reference in New Issue