注射建议在Spring.Net递归方法? [英] Injecting advice to a recursive method in Spring.Net?

查看:134
本文介绍了注射建议在Spring.Net递归方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要使用Spring.NET的支持AOP做的依赖注入/控制/面向方面编程的反转(对不起流行语的转换 - 也许我会发布一个单独的问题,要求别人澄清的区别:))。

I'm trying to use Spring.NET's support for AOP to do dependency injection/inversion of control/aspect-oriented programming (sorry for the slew of buzzwords - maybe I'll post a separate question asking someone to clarify the difference :) ).

具体来说,我想有一个拦截递归方法调用,让每一个该方法被调用时,AOP通知/拦截器会被调用。

Specifically, I want to have intercept a recursive method call, so that every time that the method is invoked, the AOP advice/interceptor will be called.

Spring.Net不会出现拦截比的第一方法调用的任何其他。我的认为的是Spring.Net是保持恰好1链每个实例拦截器,并没有调用任何更多的拦截,直到第一个方法调用已完成。

Spring.Net doesn't appear to intercept anything other than the very first method call. I think that Spring.Net is maintaining exactly 1 chain of interceptors per instance, and not call any more interceptors until that first method invocation has finished.

有谁对取得拦截器(建议)被触发每一个方法调用,包括递归调用任何信息?

Does anybody have any info about getting the interceptor (the advice) to be triggered for EVERY method invocation, including recursive calls?

我可以提供代码/示例输出,如果这是有帮助的。
谢谢!

I can provide code/example output, if that's helpful. Thanks!

推荐答案

请参阅的 http://forum.springframework.net/showthread.php?t=5331

这篇关于注射建议在Spring.Net递归方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆