FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java_Code_Audit/java_proxy/src/UserinvocationHandler.java at master · apsry/Java_Code_Audit · GitHub
apsry
Java_Code_Audit
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java_Code_Audit
/
java_proxy
/
src
/
UserinvocationHandler.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (19 loc) · 625 Bytes
Breadcrumbs
Java_Code_Audit
/
java_proxy
/
src
/
UserinvocationHandler.java
Copy path
File metadata and controls
22 lines (19 loc) · 625 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import
java
.
lang
.
reflect
.
InvocationHandler
;
import
java
.
lang
.
reflect
.
Method
;
public
class
UserinvocationHandler
implements
InvocationHandler
{
IUser
user
;
public
UserinvocationHandler
()
{
}
public
UserinvocationHandler
(
IUser
user
)
{
this
.
user
=
user
;
}
@
Override
//不管调用什么,都会调用invoke,所以调用的时候有动态代理可以自动执行
public
Object
invoke
(
Object
proxy
,
Method
method
,
Object
[]
args
)
throws
Throwable
{
System
.
out
.
println
(
"调用了"
+
method
);
method
.
invoke
(
user
,
args
);
return
null
;
}
}
Back
|
FazBrowse Home
|
New Git URL