由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How to intercept a method call
相关主题
What do you think about AOP?a dump method in Java
spring transaction的问题aspectJ Question
看Spring真是头大有多少人对annotation这个东西不满,请举手!!
spring AOP questioninteresting
AOP 中的 self-invocation 问题AspectJ question
这样理解spring的AOPanother aspectJ question
aspectJ questionaspectJ + ant , how to define task?
aspectJ questionaspectj question
相关话题的讨论汇总
话题: method话题: intercept话题: call话题: client话题: use
进入Java版参与讨论
1 (共1页)
r**o
发帖数: 481
1
How to intercept a method call from the client without override the method
or change the client way of calling?
r*****l
发帖数: 2859
2
Use AOP.
If Spring, use one of the ProxyCreators. Otherwise, you can use AspectJ, or
write your own using Java instrument and/or Dynamic Proxy.

【在 r**o 的大作中提到】
: How to intercept a method call from the client without override the method
: or change the client way of calling?

x***i
发帖数: 585
3
建一个代理就可以了。dynamic proxy都不用
1 (共1页)
进入Java版参与讨论
相关主题
aspectj questionAOP 中的 self-invocation 问题
没有源代码,想替换掉一个class文件里的类这样理解spring的AOP
override/overload/overwrite in JavaaspectJ question
It's a Java BugaspectJ question
What do you think about AOP?a dump method in Java
spring transaction的问题aspectJ Question
看Spring真是头大有多少人对annotation这个东西不满,请举手!!
spring AOP questioninteresting
相关话题的讨论汇总
话题: method话题: intercept话题: call话题: client话题: use