Spring.Net 有一个 AOP 框架,可以与 Spring 的 IoC 框架一起使用,也可以不与 Spring 的 IoC 框架一起使用。如果您也在寻找 IoC 框架,Spring.Net 是一个令人信服的案例,并且是免费且开源的。
在我看来,Spring.Net 的另一个优点是文档和论坛支持非常出色。我多次看到关于 Spring.Net 的一个负面评论是 XML 配置冗长且难以阅读,这是事实。然而,它至少是一致的,因此一旦您了解了它如何适用于一个块,您就可以轻松地将其应用到其他块。
Spring.Net has an AOP framework which can be used with or without Spring's IoC framework. If you are also looking for an IoC framework, Spring.Net makes a compelling case and is free and open source.
Another plus for Spring.Net IMO is that the documentation and forum support really is excellent. One negative comment about Spring.Net that I have seen several times is that the XML configuration is wordy and difficult to read, which is true. It is however at least consistent so that once you have learned how it works for one block, you can apply it easily to other blocks.
发布评论
评论(7)
PostSharp 可能是最受欢迎的选择,尽管我相信 Sprint.NET 也相当普遍。
PostSharp is probably the most popular option, although I believe Sprint.NET is fairly widespread, as well.
我使用 Microsoft Unity 但也有 StructureMap,Spring.NET,温莎城堡 以及最受欢迎的 PostSharp。
I use Microsoft Unity but there is also StructureMap, Spring.NET, Castle Windsor and, the most popular, PostSharp.
我们不要忘记LinFU。 Scott Hanselman 做了一次很棒的关于它的采访,包括很多 AOP 的基础知识。
Let's not forget LinFU. Scott Hanselman did a great interview about it, including a lot of basics of AOP.
我知道 PostSharp 它似乎使用属性很好地完成了很多 AOP 操作。
I know of PostSharp which seems to be doing a lot of AOP-things really well using attributes.
Spring.Net 有一个 AOP 框架,可以与 Spring 的 IoC 框架一起使用,也可以不与 Spring 的 IoC 框架一起使用。如果您也在寻找 IoC 框架,Spring.Net 是一个令人信服的案例,并且是免费且开源的。
在我看来,Spring.Net 的另一个优点是文档和论坛支持非常出色。我多次看到关于 Spring.Net 的一个负面评论是 XML 配置冗长且难以阅读,这是事实。然而,它至少是一致的,因此一旦您了解了它如何适用于一个块,您就可以轻松地将其应用到其他块。
Spring.Net has an AOP framework which can be used with or without Spring's IoC framework. If you are also looking for an IoC framework, Spring.Net makes a compelling case and is free and open source.
Another plus for Spring.Net IMO is that the documentation and forum support really is excellent. One negative comment about Spring.Net that I have seen several times is that the XML configuration is wordy and difficult to read, which is true. It is however at least consistent so that once you have learned how it works for one block, you can apply it easily to other blocks.
的编译器支持
Delphi Prism 具有对 AOP http://prismwiki.codegear.com/en/Cirrus
Delphi Prism has compiler support for AOP
http://prismwiki.codegear.com/en/Cirrus
拦截 Microsoft Unity 为您提供了一些 AOP。此外,请参阅策略注入作为其中之一开箱即用的拦截行为。
这组 动手实验室。
Interception extension for Microsoft Unity gives you some AOP. In addition, see Policy Injection as one of the out-of-the-box interception behaviours.
Good examples and tutorials are included in this set of Hands-on Labs.