Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
月轩居士
SkyWalking
提交
b24a1758
S
SkyWalking
项目概览
月轩居士
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b24a1758
编写于
7月 12, 2017
作者:
wu-sheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove and move classes.
上级
10346925
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
65 deletion
+2
-65
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/PluginFinder.java
...va/org/skywalking/apm/agent/core/plugin/PluginFinder.java
+1
-1
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/bytebuddy/AbstractJunction.java
...ing/apm/agent/core/plugin/bytebuddy/AbstractJunction.java
+1
-1
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/bytebuddy/AllObjectDefaultMethodsMatch.java
...t/core/plugin/bytebuddy/AllObjectDefaultMethodsMatch.java
+0
-63
未找到文件。
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/PluginFinder.java
浏览文件 @
b24a1758
...
...
@@ -10,7 +10,7 @@ import net.bytebuddy.description.annotation.AnnotationDescription;
import
net.bytebuddy.description.annotation.AnnotationList
;
import
net.bytebuddy.description.type.TypeDescription
;
import
net.bytebuddy.matcher.ElementMatcher
;
import
org.skywalking.apm.agent.core.plugin.bytebuddy.
judge.
AbstractJunction
;
import
org.skywalking.apm.agent.core.plugin.bytebuddy.AbstractJunction
;
import
org.skywalking.apm.agent.core.plugin.match.AnnotationMatch
;
import
org.skywalking.apm.agent.core.plugin.match.ClassMatch
;
import
org.skywalking.apm.agent.core.plugin.match.NameMatch
;
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/bytebuddy/
judge/
AbstractJunction.java
→
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/bytebuddy/AbstractJunction.java
浏览文件 @
b24a1758
package
org.skywalking.apm.agent.core.plugin.bytebuddy
.judge
;
package
org.skywalking.apm.agent.core.plugin.bytebuddy
;
import
net.bytebuddy.matcher.ElementMatcher
;
...
...
apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/plugin/bytebuddy/AllObjectDefaultMethodsMatch.java
已删除
100644 → 0
浏览文件 @
10346925
package
org.skywalking.apm.agent.core.plugin.bytebuddy
;
import
net.bytebuddy.description.method.MethodDescription
;
import
net.bytebuddy.matcher.ElementMatcher
;
import
net.bytebuddy.matcher.ElementMatchers
;
import
static
net
.
bytebuddy
.
matcher
.
ElementMatchers
.
named
;
import
static
net
.
bytebuddy
.
matcher
.
ElementMatchers
.
takesArguments
;
/**
* match all methods, which inherits from {@link Object}
* <p>
* Created by wusheng on 2017/1/3.
*/
public
enum
AllObjectDefaultMethodsMatch
implements
ElementMatcher
<
MethodDescription
>
{
/**
* Stay in singleton.
*/
INSTANCE
;
/**
* The matcher will be init in constructor and stay permanent.
*/
private
final
ElementMatcher
.
Junction
<
MethodDescription
>
matcher
;
/**
* Init the match, include {@link Object}'s methods.
*/
AllObjectDefaultMethodsMatch
()
{
ElementMatcher
.
Junction
<
MethodDescription
>[]
allDefaultMethods
=
new
ElementMatcher
.
Junction
[]
{
named
(
"finalize"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"wait"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"wait"
).
and
(
takesArguments
(
long
.
class
,
int
.
class
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"wait"
).
and
(
takesArguments
(
long
.
class
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"equals"
).
and
(
takesArguments
(
Object
.
class
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"toString"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"hashCode"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"getClass"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"clone"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"notify"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
()),
named
(
"notifyAll"
).
and
(
takesArguments
(
0
)).
and
(
ElementMatchers
.<
MethodDescription
>
isPublic
())};
ElementMatcher
.
Junction
<
MethodDescription
>
newMatcher
=
null
;
for
(
int
i
=
0
;
i
<
allDefaultMethods
.
length
;
i
++)
{
if
(
i
==
0
)
{
newMatcher
=
allDefaultMethods
[
i
];
}
else
{
newMatcher
=
newMatcher
.
or
(
allDefaultMethods
[
i
]);
}
}
matcher
=
newMatcher
;
}
/**
* @param target method description.
* @return true, if the method inherit from {@link Object}'s methods.
*/
@Override
public
boolean
matches
(
MethodDescription
target
)
{
return
matcher
.
matches
(
target
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录