Aspect Injector 文档——概念术语
We're trying to use the same terminology as other frameworks. So, if you are familiar with those, you're familiar with Aspect Injector.
我们试图使用与其他框架相同的术语。因此,如果您熟悉这些,那么您就熟悉Aspect Injector。
- Aspect - class that encapsulates logic some logic. It has Effects which are kind of entry points to aspect. 它是封装了一些逻辑的逻辑类。它包含Effects,Effect是aspect的一种切入点。
- Effect - formal description of how aspect interacts with other classes. There are currently two types of effect: Advice and Mixin. Both can be present within single aspect together and many times. By applying deliberate combinations of effects, it allows for some complex scenarios. aspect如何与其他类交互的正式描述。当前有两种类型的effect:Advice和Mixin。两者可以同时出现在单个aspect中,也可以是多次出现。通过精心组合effects,可以处理一些复杂的情况。
- Advice - a type of effect that describes how method is modified. It can be used to inject some code before, after and/ir instead of a method. effect的一种,描述如何修改方法。它可以用于在方法之前、之后中插入一些代码,或干脆替代方法。
- Mixin - a type of effect that describes how class is modified. It can be used to alter a class's implemented interfaces. 描述如何修改类的一种effect。它可以用来修改类以实现某些接口。
- Trigger - dotnet attribute that tells AspectInjector which aspect should be injected into target. Dotnet 特性,它告诉 AspectInjector 应该将哪个aspect注入到目标中。
- Injection (or Pointcut) - process of consumption of aspects. Aspect consumer can use injections to leverage aspect's logic. aspect的使用过程。Aspect使用者可以使用注入来利用aspect的逻辑。
作者:菜鸟吊思
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
施主您好,贫僧接受供养,施主一粒米,大如须弥山!南无阿弥陀佛!
您学习别人出学费,只需先扫红包码,后扫支付码!
