但是应该将程序分成不同的组件部分,并用注释填充组件之间的间隙。
But you should break up the program into component parts, and use comments to fill in the gaps.
包含这些类型的注释的程序元素不仅能被授权和身份验证方面所捕获,而且还可被其他实现捕获,比如隐私策略增强方面。
Program elements carrying annotation of these types can be captured by not only authorization and authentication aspects, but also other implementations such as privacy policy enforcement aspects.
元数据功能定义了向程序元素提供注释的机制。
A metadata facility defines a mechanism to supply annotations to program elements.
如果多个程序元素有同样的注释声明,那么就会产生不必要的混乱。
If the same annotation declaration appears for multiple program elements, however, it can lead to unnecessary clutter.
理想情况是,注释类型应当表示程序元素的抽象功能,而不是它们预期的消费。
Ideally, annotation types should represent abstract characteristics of a program element and not their expected consumption.
使用AOP结构提供注释背后的基本想法是避免将程序元素定义与注释相混淆。
The basic idea behind supplying annotation using an AOP construct is to avoid cluttering the program element's definition with annotations.
错误的注释会让程序更加难以阅读和理解。
Erroneous comments can make programs even harder to read and understand.
概念上,这种结构可以以横切的方式在程序元素上附加注释。
Conceptually, such a construct allows you to attach annotations to program elements in a crosscutting manner.
本书当中,所有的程序都将以一段特别的注释开头,这段注释叫做程序注解,是用来整体描述这段程序的。
In this text, every program begins with a special comment called the program comment that describes the operation of the program as a whole.
尽管他在文化编程方面的工作没有赶上他最初的贡献,但这无疑影响到了我们对编写和注释程序的考虑。
Although his work on literate programming has not caught on in his original form, it has definitely influenced the way many of us think about writing and annotating programs.
元数据是用称为注释的程序元素表示的。
Metadata is expressed using program elements called annotations.
理解如何使用这个注释对于确保在应用程序中获得合适的事务支持级别非常重要。
Understanding how this annotation is used is important to ensuring that you have the proper level of transaction support in your application.
然后可以像其他对象一样,用注释实例修改程序的行为。
The annotation instances can then be used much like other objects to modify the behavior of the program.
您还可以直播注释查看演示文稿、应用程序和桌面。
You can also view presentations, applications, and desktops with live annotations.
希望内嵌注释能指导您理顺上面列出的程序的逻辑流。
Hopefully, the inline comments will guide you through the flow of the logic for the program listed above.
过度使用注释会使包含在程序元素的签名和动态上下文中的原有信息无法得到充分利用。
Overusing annotations under-utilizes the information inherently contained in the program element's signature and dynamic context.
一个支持提供注释的AOP系统可以以横切方式将注释附加到程序元素上。
An AOP system that supports supplying annotations will let you attach annotations to program elements in a crosscutting manner.
支持消费注释的AOP系统使您可以基于与程序元素相关联的注释选择连接点。
An AOP system that supports consuming annotations will let you select join points based on annotations associated with program elements.
最明显的元注释就是允许何种程序元素具有定义的注释类型。
The most obvious meta-annotation is one that allows you to indicate which program elements can have annotations of the defined type.
这个枚举定义了注释类型可应用的不同程序元素。
This enum defines the various program elements that an annotation type can target. Listing 9 show the ElementType enum in its entirety.
Servlet 2.5规范中声明,可以在某些We b组件(如servlet、筛选器、侦听器和标记处理程序)中定义注释。
The servlet 2.5 specification states that annotations can be defined on certain Web components, such as servlets, filters, listeners, and tag handlers.
许多编程编得很好的程序员写注释不行,而编得不好的程序员能写出出色的注释。
Many good programmers comment badly, and many bad programmers produce excellent comments.
其他方法、类或组件都不应包含事务逻辑(包括事务注释、编程序事务逻辑和回滚逻辑)。
No other methods, classes, or components should contain transaction logic (including transaction annotations, programmatic transaction logic, and rollback logic).
程序运行后会自己清除,所以如果您想在注册表中找到值,请注释掉程序尾部的清除代码。
The program cleans up after itself, so if you want to find the values in the registry, comment out the cleanup code at the end.
风格良好的程序包含注释,这些注释为代码提供了额外的信息,解释这段代码在做什么或者它为什么用这种方法写。
Well-written programs include comments that add information to the code to explain what it is doing or why it was written a certain way.
当拥有两套注释处理程序时,任何错误修正、变更、或者增加都应当对两套(或分支)同时应用。
When you have two sets of annotation handlers, any bug fix, change, or addition should be applied to both sets (or branches).
文档注释处理程序将有益于AST转换的维护者,而文档注释将有益于其用户。
Documenting your annotation handlers will benefit maintainers of the AST transformations, while documenting your annotations will benefit their users.
然而,它的确会告诉代码管理员,某个程序员的注释是极其简洁的、异常冗长的还是对非编程人员来说是很难理解的。
It does, however, tell the code manager if comments from a programmer are unusually terse, unusually verbose, or difficult for a nonprogrammer to understand.
元数据正日益变得有帮助,您肯定会提出非常适用于自己的应用程序的注释类型。
Metadata is increasingly useful, and you'll certainly come up with annotation types that are perfect for your own applications.
接下来,将需要为所确定的每个注释编写注释处理程序。
Next, you'll need to write annotation handlers for each of the annotations you've identified.
应用推荐