横切变得很明确,易于推理和修改。
Crosscutting becomes explicit, easy to reason about and change.
横切是面向方面编程的专有名词。
Crosscutting is a term specific to aspect-oriented programming.
所有这些都是所谓横切关注点的例子。
那么它们是否也适用于横切关注点呢?
Are they also appropriate for dealing with crosscutting concerns?
图像装饰器也可以用来表示横切信息。
Image decorators can also be used to show crosscutting information.
但是横切行为会怎么样呢?
冯·哈根斯正在展示一只鸟的横切片。
不过,以横切的方式提供注释是很有用的。
However, supplying annotations in a crosscutting manner can be very helpful.
方面可以并且通常用普通对象实现横切行为。
Aspects can and often do implement their crosscutting behavior using ordinary objects.
不需要横切领域对象。
因此,怎样才能实现一个横切关注点,例如日志?
So how do we implement a cross-cutting concern such as logging?
现在,我将展示以横切方式提供注释的基本语法。
For now, I'll show you the basic syntax to supply annotation in a crosscutting manner.
横切数个类的行为给集成测试带来了一个特定问题。
Behavior that crosscuts a number of classes poses a particular problem for integration tests.
AOP是在应用程序开发中管理横切关注点的关键。
AOP is key to managing crosscutting concerns in application development.
使用AOP,可以从代码中消除许多横切关注点。
With AOP, you can strip many cross-cutting concerns right out of your code.
什么是横切?
避免将所有代码与横切关注点类的特殊实例联系起来。
Avoided tying all code to particular instances of cross-cutting concern classes.
注意在撰写本文时,只有AJDT提供横切比较工具。
Note that as of this writing, only AJDT provides a crosscutting comparison tool.
请参阅参考资料来了解关于动态横切的更多内容。
通过划分Aspect代码,横切关系变得容易处理。
By compartmentalizing aspect code, crosscutting concerns become easy to deal with.
用注解捕获应用中特定的横切关注点是一种很简单的方式。
Annotations are an easy way to capture certain crosscutting concerns in the applications.
一旦项目中有了一个或多个横切图文件,就可以进行比较了。
Once you have one or more crosscutting map files in your project, you can perform a comparison.
在本文中,我将介绍测试用方面实现的横切行为的一组技术。
In this article, I introduce a catalog of techniques for testing crosscutting behavior implemented with aspects.
在本文剩下的篇幅中,我将重点讲解静态横切的技术和应用。
For the remainder of the article I will focus on the technique and application of static crosscutting.
此外,静态横切可以把扩展和实现附加到对象的基本结构中。
Moreover, static crosscutting lets you affix extensions and implementations to the fundamental structure of an object.
概念上,这种结构可以以横切的方式在程序元素上附加注释。
Conceptually, such a construct allows you to attach annotations to program elements in a crosscutting manner.
在横切的世界里,横切有两种类型:动态横切和静态横切。
Within the world of crosscutting, there are two types: dynamic crosscutting and static crosscutting.
专门化的题目组和关系表指定横切在主题层次结构上的相关关系。
Specialized topic groups and relationship tables specify related-to relationships that cut across the subject hierarchy.
首先是横切规范,它要回答的是关注点影响的是程序的哪些部分。
First, there is the crosscutting specification, where you should ask yourself what parts of the program the concern affects.
应用推荐