Skip to content

Commit 36dc8da

Browse files
author
dingjsh
committed
修改包名为com.wenshuo
1 parent 8a3ab9f commit 36dc8da

File tree

243 files changed

+723
-742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+723
-742
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ java启动参数中就有jaaagent,你只需要在JAVA_OPTS中加入`-javaagent:/
88
### agent.properties说明
99
```
1010
# 你想监控哪些包,多个包用分号分隔,凡是不在该配置里的包中类都不会监控,所以不会去默认监控各种第三方包以及jre自带的类
11-
agent.include.package=com.thunisoft
11+
agent.include.package=com.xxx
1212
# 你不想监控的包,多个包用分号分隔,include.package减去exclude.package就是你监控的包
1313
agent.exclude.package=
1414
# 你不想监控的包的正则

pom.xml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>com.dingjsh</groupId>
5+
<groupId>com.wenshuo</groupId>
66
<artifactId>javaagent</artifactId>
7-
<version>1.2.0</version>
7+
<version>1.3.0</version>
88
<packaging>jar</packaging>
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212
<project.build.target>1.6</project.build.target>
1313
</properties>
14-
<organization>
15-
<name>BeiJing Thunisoft Corporation Limited</name>
16-
<url>http://www.thunisoft.com</url>
17-
</organization>
1814
<developers>
1915
<developer>
2016
<id>dingjsh</id>
@@ -29,17 +25,6 @@
2925
<distribution>repo</distribution>
3026
</license>
3127
</licenses>
32-
<distributionManagement>
33-
<repository>
34-
<id>public-repo</id>
35-
<url>http://repo.thunisoft.com/maven2/content/repositories/cmptreleases/</url>
36-
</repository>
37-
<snapshotRepository>
38-
<id>public-snapshots</id>
39-
<url>http://repo.thunisoft.com/maven2/content/repositories/snapshots</url>
40-
</snapshotRepository>
41-
</distributionManagement>
42-
4328
<build>
4429
<sourceDirectory>src</sourceDirectory>
4530
<outputDirectory>target/classes</outputDirectory>
@@ -74,7 +59,7 @@
7459
<configuration>
7560
<archive>
7661
<manifestEntries>
77-
<premain-class>com.thunisoft.agent.Agent</premain-class>
62+
<premain-class>com.wenshuo.agent.Agent</premain-class>
7863
</manifestEntries>
7964
</archive>
8065
</configuration>

src/com/thunisoft/agent/Agent.java renamed to src/com/wenshuo/agent/Agent.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
* @(#)Agent.java 2015-7-24 上午09:49:34
33
* javaagent
44
* Copyright 2015 Thuisoft, Inc. All rights reserved.
5-
* THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
5+
* wenshuo PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
66
*/
7-
package com.thunisoft.agent;
7+
package com.wenshuo.agent;
88

99
import java.io.IOException;
1010
import java.lang.instrument.Instrumentation;
1111

12-
import com.thunisoft.agent.log.ExecuteLogUtils;
13-
import com.thunisoft.agent.transformer.ThunisoftClassFileTransformer;
12+
import com.wenshuo.agent.log.ExecuteLogUtils;
13+
import com.wenshuo.agent.transformer.AgentLogClassFileTransformer;
1414

1515
/**
1616
* Agent
@@ -24,7 +24,7 @@ public static void premain(String agentArs, Instrumentation inst)
2424
// 初始化配置
2525
ConfigUtils.initProperties(agentArs);
2626
ExecuteLogUtils.init();
27-
inst.addTransformer(new ThunisoftClassFileTransformer());
27+
inst.addTransformer(new AgentLogClassFileTransformer());
2828
}
2929

3030
}

src/com/thunisoft/agent/AgentUtils.java renamed to src/com/wenshuo/agent/AgentUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @(#)AgentUtils.java 2015-7-27 下午05:26:24
33
* javaagent
44
* Copyright 2015 Thuisoft, Inc. All rights reserved.
5-
* THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
5+
* wenshuo PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
66
*/
7-
package com.thunisoft.agent;
7+
package com.wenshuo.agent;
88

99
import java.io.ByteArrayOutputStream;
1010
import java.io.File;

src/com/thunisoft/agent/ConfigConsts.java renamed to src/com/wenshuo/agent/ConfigConsts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @(#)ConfigConsts.java 2015-7-27 下午06:06:23
33
* javaagent
44
* Copyright 2015 Thuisoft, Inc. All rights reserved.
5-
* THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
5+
* wenshuo PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
66
*/
7-
package com.thunisoft.agent;
7+
package com.wenshuo.agent;
88

99
/**
1010
* ConfigConsts

src/com/thunisoft/agent/ConfigUtils.java renamed to src/com/wenshuo/agent/ConfigUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thunisoft.agent;
1+
package com.wenshuo.agent;
22

33
import java.io.File;
44
import java.io.FileInputStream;

src/com/thunisoft/agent/ExecuteLogAnalyzer.java renamed to src/com/wenshuo/agent/ExecuteLogAnalyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @(#)ExecuteLogAnalyzer.java 2015-8-3 上午09:15:41
33
* javaagent
44
* Copyright 2015 Thuisoft, Inc. All rights reserved.
5-
* THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
5+
* wenshuo PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
66
*/
7-
package com.thunisoft.agent;
7+
package com.wenshuo.agent;
88

99
/**
1010
* ExecuteLogAnalyzer,分析方法执行日志

src/com/thunisoft/agent/NamedThreadFactory.java renamed to src/com/wenshuo/agent/NamedThreadFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.thunisoft.agent;
1+
package com.wenshuo.agent;
22

33
import java.util.concurrent.ThreadFactory;
44
import java.util.concurrent.atomic.AtomicInteger;

src/com/thunisoft/agent/PojoDetector.java renamed to src/com/wenshuo/agent/PojoDetector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
* @(#)PojoDetector.java 2016-5-7 下午04:18:14
33
* javaagent
44
* Copyright 2016 Thuisoft, Inc. All rights reserved.
5-
* THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
5+
* wenshuo PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
66
*/
7-
package com.thunisoft.agent;
7+
package com.wenshuo.agent;
88

99
import java.util.Collections;
1010
import java.util.HashMap;
1111
import java.util.HashSet;
1212
import java.util.Map;
1313
import java.util.Set;
1414

15-
import com.thunisoft.agent.javassist.CtMethod;
15+
import com.wenshuo.agent.javassist.CtMethod;
1616

1717
/**
1818
* PojoDetector

src/com/thunisoft/agent/javassist/ByteArrayClassPath.java renamed to src/com/wenshuo/agent/javassist/ByteArrayClassPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* License.
1515
*/
1616

17-
package com.thunisoft.agent.javassist;
17+
package com.wenshuo.agent.javassist;
1818

1919
import java.io.*;
2020
import java.net.URL;

0 commit comments

Comments
 (0)