With the standard Java metadata facility, one annotation instance is declared for each program element being annotated. 在标准的Java元数据功能中,要对每一个已注释的程序元素(PE)声明一个注释实例。
For example, the Javadoc specification allows you to specify annotations in the comments associated with a program element. 例如,Javadoc规范使您可以在与程序元素(PE)相关联的备注中指定注释。
Communicates with the framework the role of the program element. 将告诉框架程序元素(PE)的作用。
The proposed use of annotations in EJB3.0, such as @ Remove and @ Session, communicates with the framework the role of the program element. 在EJB3.0中,注释的建议用法,如@Remove和@Session,将告诉框架程序元素(PE)的作用。
Annotations are best for expressing the inherent characteristics of a program element. 注解是表达程序元素(PE)固有特性的最佳选择。