如果愿意,甚至可以混合使用这两种方式,让遗留代码用描述符指定ejb,而用注解声明新的EJB。
You can even mix approaches if you wish, allowing legacy code to specify EJBs using descriptors while new EJBs are declared with annotations.
对 OOAD项目评分的一部分——每周给一次分——就是以他们的注解和代码风格为基础的。
Part of my OOAD project grades -- given weekly -- were based upon their javadoc comments and their code style.
如果您能使重构与编写很好的注解作为您个人过程的一部分,您会发现您不可能用任何其它方法来编写代码。
If you make refactoring and writing good comments a part of your personal process, you will get to a point where you are unable to write code in any other way.
定义注解的代码指定注解接受哪些命名元素(如果有的话)。
The code that defines the annotation specifies which named elements (if any) the annotation accepts.
注解:用更少的代码做更多工作。
用这些语言写出的代码需要比Scala更少的类型注解,因为Scala的类型推断算法得同时支持面向对象类型和函数式类型。
Code written in these languages require type annotations less often than in Scala, because Scala's type inference algorithm has to support object-oriented typing as well as functional typing.
如果不使用Hibernate注解,也可以重用这些基类中的代码。
You can also reuse code in these base classes if you are not using Hibernate annotations.
当在代码里显式地为变量指定类型信息时,类型注解应该跟在变量名的冒号后面(也就是类pascal语法)。
When explicit type information for variables is written in the code, these type annotations follow the colon after the item name (i.e., Pascal-like syntax).
你想要使用已有代码作为通知,而且不想引入AspectJ注解:比如,引入一个Observer行为调用任意pojo的方法。
You want to use existing code as advice, and don't want to introduce AspectJ annotations into it: for example, introducing an Observer behavior invoking a method on an arbitrary POJO.
jpa2web工具是一种轻量的注解驱动的代码生成工具,而不是MDA的完整实现。
The jpa2web tool should be considered as a lightweight annotation-driven code generation tool for developers rather than an complete implementation of MDA.
当您在Eclipse中操纵代码的时候,还会注意到在左边框上注解和代码折叠控制符之间有另外一栏。
As you work with code in Eclipse, you'll notice yet another column in the left margin between annotations and the code folding controls.
最后,我们可能会希望获得一个“带注解的源代码”清单,它会将源代码输出到应用程序中,并加上每个函数被调用了多少次的注释。
Finally, you might want to have an "annotated source" listing, which prints out the source code to the application, with notes on how many times each function is called.
没有的代码是否已经删除?所有的无用注解是否删除?
Has unused code been removed? Have all unnecessary comments been removed?
包含上述代码的方法加上了Spring 2.5声明式事务的注解。
The method to include the above lines was annotated with a Spring 2.5 declarative transaction.
包含上述代码的方法加上了Spring 2.5声明式事务的注解。
The method to include the above lines was annotated with a Spring 2.5 declarative transaction.
应用推荐