发现了一个 关于Spring Aop 的有关问题 小弟我感觉有点不可思议 大家帮忙都来看看啊

发现了一个 关于Spring Aop 的问题 我感觉有点不可思议 大家帮忙都来看看啊!!
     发现了个问题源码在附件里, 需要的Jar 里面有说明,

我朋友说:
XX  9:59:48
我的aop就是做点这样的事。
XX  10:00:10
检查权限,,,打打日志什么的。其他的一般不做事。
      
     不知道是不是aop也就能干这个了,我是还用在事务上了.
下面我简单描述一下问题 :
    我拦截的 SonServiceImpl类里所有方法  他调用父类方法  test()
但是拦截器 拦不到了,不明白为什么会这样??~~ spring aop 拦截还要区分
派生类和基类吗? 大家仔细看下我的代码 里面有个地方有方法重写.
    也奇怪啦 我自己写的拦截器 就用的很普通的反射也没事啊 根本不区别基类父类就能
拦截到 大家帮我看看是怎么回事吧 不胜感激~


额 没人理我也~ 不过看了下源码才知道 人家故意区分的 人家有链~~
// Get the interception chain for this method.

附件我已经删了 虽然没人理 还是说声大家再见吧

whaosoft
1 楼 whaosoft 2009-12-15  
发现了一个 关于Spring Aop 的有关问题 小弟我感觉有点不可思议 大家帮忙都来看看啊   555555 竟然没人理我 是不是我问的过于白痴了  不过还好 我已经知道怎么回事了!
2 楼 gohands 2009-12-17  
whaosoft 写道
发现了一个 关于Spring Aop 的有关问题 小弟我感觉有点不可思议 大家帮忙都来看看啊   555555 竟然没人理我 是不是我问的过于白痴了  不过还好 我已经知道怎么回事了!

才两天就删了呀!?有问题要去论坛里问比较好!?
在博客里大家不怎么看得到的说!!
我之前一个调查就是用aop来控制事物的【在spring的配置文件配置一下就好了】
	<aop:config>
		<aop:advisor pointcut="execution(* com.acces.nhs.buiness.service.*.*.*Service*.*(..))"
			advice-ref="txAdvice" />
	</aop:config>
	<tx:advice id="txAdvice" transaction-manager="transactionManager">
		<tx:attributes>
			<tx:method name="get*" read-only="true" propagation="REQUIRED" />
			<tx:method name="load*" read-only="true" propagation="REQUIRED" />
			<tx:method name="find*" read-only="true" propagation="REQUIRED" />
			<tx:method name="add*" propagation="REQUIRED" />
			<tx:method name="reset*" propagation="REQUIRED" />
			<tx:method name="update*" propagation="REQUIRED" />
			<tx:method name="del*" propagation="REQUIRED" />
			<tx:method name="*" propagation="REQUIRED" />
		</tx:attributes>
	</tx:advice>
3 楼 whaosoft 2009-12-17  
gohands 写道
whaosoft 写道
发现了一个 关于Spring Aop 的有关问题 小弟我感觉有点不可思议 大家帮忙都来看看啊   555555 竟然没人理我 是不是我问的过于白痴了  不过还好 我已经知道怎么回事了!

才两天就删了呀!?有问题要去论坛里问比较好!?
在博客里大家不怎么看得到的说!!
我之前一个调查就是用aop来控制事物的【在spring的配置文件配置一下就好了】
	<aop:config>
		<aop:advisor pointcut="execution(* com.acces.nhs.buiness.service.*.*.*Service*.*(..))"
			advice-ref="txAdvice" />
	</aop:config>
	<tx:advice id="txAdvice" transaction-manager="transactionManager">
		<tx:attributes>
			<tx:method name="get*" read-only="true" propagation="REQUIRED" />
			<tx:method name="load*" read-only="true" propagation="REQUIRED" />
			<tx:method name="find*" read-only="true" propagation="REQUIRED" />
			<tx:method name="add*" propagation="REQUIRED" />
			<tx:method name="reset*" propagation="REQUIRED" />
			<tx:method name="update*" propagation="REQUIRED" />
			<tx:method name="del*" propagation="REQUIRED" />
			<tx:method name="*" propagation="REQUIRED" />
		</tx:attributes>
	</tx:advice>

你说的不是和我一个问题
4 楼 friping 2009-12-18  
你好。。小弟也碰到这个问题.能不能说说是什么原因呢
5 楼 whaosoft 2009-12-18  
friping 写道
你好。。小弟也碰到这个问题.能不能说说是什么原因呢

这就是原因 // Get the interception chain for this method.