然而,更简单的方法是为这些任务对象创建一个注解并提供@Component元注解。
However, an even simpler approach is to create an annotation for these task objects and provide the @Component meta-annotation.
使用注解(也称为特性),你甚至可以关联元数据与类和类的其他内容(操作、字段)。
Using annotations (also called attributes) you can even associate meta data to classes and some of their contents (operations, fields).
其默认的元数据源是注解,但开发者可以通过XML描述符对其进行扩展。
The default metadata source for validations is annotations, but the developers can extend the meta-data through the use of XML descriptors.
我可能希望返回去并使用针对其研究成果的元数据注解该文档。
I might want to go back and annotate this document with metadata specific to its production.
使用AOP消费元数据比起使用注解处理工具(apt)选项来有不少好处。
Consuming metadata using AOP has several advantages over using Annotation Processing Tool (APT) option.
通过外部注解增强或是提供基于注解的元数据。
Augmenting or overriding the annotation-based metadata with metadata from some other source.
支持JSR 250 (“EJB3”)security注解,提供了针对授权元数据的基于标准的模型。
Support for JSR 250 (" EJB 3 ") security annotations, delivering a standards-based model for authorization metadata.
Eclipse基金会也正致力于提供JDK 7支持,在switch语句中使用字符串、二元字面值、数字字面值中的下划线、Unicode 6.0以及SafeVarargs注解支持已经实现了。
The Eclipse foundation too is working on support, with switch on strings, binary literals and underscores in number literals, Unicode 6.0, and SafeVarargs annotation already complete.
他们可以通过注解,这允许非常灵活的可完全取代元数据功能。
They can be completely replaced by Annotations, which allow for a very flexible metadata capability.
他们可以通过注解,这允许非常灵活的可完全取代元数据功能。
They can be completely replaced by Annotations, which allow for a very flexible metadata capability.
应用推荐