由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - AspectJ question
相关主题
What do you think about AOP?aspectJ + ant , how to define task?
aspectJ Question看Spring真是头大
有多少人对annotation这个东西不满,请举手!!How to intercept a method call
interestingspring AOP question
spring transaction的问题aspectj question
aspectJ question没有源代码,想替换掉一个class文件里的类
aspectJ questionAOP 中的 self-invocation 问题
another aspectJ question这样理解spring的AOP
相关话题的讨论汇总
话题: state话题: out话题: aspectj话题: aspect话题: wanted
进入Java版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
Basically, I wanted to do the following, right after
out.setActivity (state.getActivity ());
I wanted to add another piece of code
out.setCount (state.getCount ());
How to write the aspect code? I tried the following and didn't work.
Any suggestions?
aspect X
{
after (Out out, State state):
(cflowbelow (call (int State.getActivityType ()) && target (state)))
&&
(call (void Out.setActivityType (int)) && target (out))
{
out.setCount (state.getCount ());
System.out.println ("......");
}
}
Thanks
1 (共1页)
进入Java版参与讨论
相关主题
这样理解spring的AOPspring transaction的问题
java/J2EE interview questions and answers ebookaspectJ question
如何把函数体放入到 try ... catch ... 中aspectJ question
看了一下Spring Rooanother aspectJ question
What do you think about AOP?aspectJ + ant , how to define task?
aspectJ Question看Spring真是头大
有多少人对annotation这个东西不满,请举手!!How to intercept a method call
interestingspring AOP question
相关话题的讨论汇总
话题: state话题: out话题: aspectj话题: aspect话题: wanted