annotation
美 [?æn?'te??(?)n]
英 [?æn?'te??(?)n] 
- n.注釋;注解;附注;評(píng)注
- 網(wǎng)絡(luò)標(biāo)注;注記;批注
詞形變化
復(fù)數(shù):annotations 同義詞
英漢解釋
英英解釋
例句
Any method that returns "void" and has no declared exceptions can be marked with an @OneWay annotation.
任何返回“void”且未聲明異常的方法均可以使用@OneWay注釋進(jìn)行標(biāo)記。
I really only need one indicator, be it a JNDI name or an annotation, to let me know if it is local or remote.
我確實(shí)只需要一個(gè)指示器,可以是JNDI名稱或者注釋,就可以知道該接口是本地接口還是遠(yuǎn)程接口。
So you might as well be a little more verbose and create better self-documentation for your annotation type.
所示的簡(jiǎn)寫形式中獲益,所以您需要創(chuàng)建雖然稍微有點(diǎn)冗長(zhǎng),但是更容易理解的注釋類型。
Later this fall the company plans to release the raw sequence data of the Cannabis indica genome as well as a full genome annotation.
該公司計(jì)劃在今年秋天的晚些時(shí)候公布這次大麻基因組測(cè)序的原始數(shù)據(jù),以及完整的基因組注釋。
The Listing 3 annotation just defines a pair of named values, giving the order and lead text to be used for a field.
清單3的注釋只定義了一對(duì)命名值,給出了順序和用于一個(gè)字段的前導(dǎo)文本。
After you get the XML configuration examples working, you're ready to see one of the key new features in iBATIS 3: Java annotation support.
XML配置示例正常工作后,您就可以開始了解iBATIS3的另一個(gè)關(guān)鍵的新特性:Java注釋支持。
Comment: a written note intended as an explanation, an illustration, or a criticism of a passage in a book or other writing; an annotation.
注釋,評(píng)論:作為一本書或其他書面形式里一段解釋、說明或批評(píng)的文字記錄,注解。
To facilitate modification and annotation of the image, the triangle coordinates are printed out to be applied to the image later.
為了便于對(duì)圖像進(jìn)行修改和注釋,將輸出三角形坐標(biāo)以便稍后應(yīng)用到圖像中。
Stateless annotation, above, means that this class is now a stateless session bean, and the business interface is used to invoke it.
以上的@無狀態(tài)注解,意味著此類現(xiàn)在是一個(gè)無狀態(tài)會(huì)話bean,將使用業(yè)務(wù)接口來調(diào)用它。
Specify a constraint on the fileSet class member, which ensures the size is always at least 1 or more using the @Size annotation.
對(duì)fileSet類成員指定一個(gè)約束條件,確保使用@Size標(biāo)注時(shí)其大小總是至少為1或更大。
Next time you take a POJO and slap on an annotation to turn it into an EJB, you can give a little thanks to the OpenEJB team.
下次當(dāng)您給POJO加上一些注釋將其轉(zhuǎn)換成EJB時(shí),您應(yīng)對(duì)OpenEJB團(tuán)隊(duì)所作的貢獻(xiàn)表示感謝。
The snowboard element is attached to the abstract concept of the same name through expression within the schema annotation.
通過在模式注釋中表達(dá),snowboard元素被附加到同名的抽象概念中。
The class is annotated with an @Entity annotation to indicate to JPA that this class is a mapped entity.
類帶上了注釋@Entity,以向JPA指示該類是一個(gè)被映射的實(shí)體。
One of the more useful areas in which to implement this project is in a teleconference annotation application.
此項(xiàng)目的應(yīng)用領(lǐng)域之一是電話會(huì)議注釋應(yīng)用程序。
Thanks to the power of the @Delegate annotation, you were able to create a FixedList class in about 50 lines of code.
感謝@Delegate注釋的強(qiáng)大威力,我們只使用大約50代碼就創(chuàng)建了FixedList類。
As you'll learn in the next three sections, Tiger's basic annotation types are extremely simple to use.
正如將在下面三個(gè)部分了解到的,Tiger的基本注釋類型的使用都極其簡(jiǎn)單。
Of course, annotation-based metainformation can only go so far as an aspect design approach.
當(dāng)然,基于標(biāo)注的元信息能走多遠(yuǎn),依賴于方面設(shè)計(jì)技術(shù)能走多遠(yuǎn)。
Access to a service using module Context is specified by defining a field with a type of ModuleContext and with the @Context annotation.
通過將字段定義為ModuleContext類型,或使用@ContextAnnotation,可指定使用模塊上下文進(jìn)行服務(wù)訪問。
Google already has a social search feature, which allows users to see comments and annotation made by their friends in their search results.
GOOGLE已經(jīng)有一個(gè)社會(huì)搜索特征,它允許使用者查看朋友在搜索結(jié)果中留下的評(píng)論和注釋。
Annotation-based injection often used by JAX-RS resource classes may not be supported in the case of a singleton instance.
常被JAX-RS資源類使用的基于注釋的注入可能在一個(gè)單例實(shí)例的情況內(nèi)并不受支持。
As you can see, the principle for supplying annotation is the same across the various AOP systems, although the syntax differs.
可以看出,提供注釋的原理在不同的AOP系統(tǒng)中是相同的,盡管語法不一樣。
Typically, when you see the @Entity annotation, you can expect to see a corresponding database table.
通常,看到@Entity注釋就等于看到了對(duì)應(yīng)的數(shù)據(jù)庫表。
If the value of the courses property is null, Seam looks for a @Factory annotation, again using the name of the property as a key.
如果courses屬性的值為null,Seam就會(huì)再次使用該屬性的名稱作為鍵查找@Factory注釋。
Next, you see that "deptno" has been annotated with an @Id annotation, signifying that it is the primary key attribute.
接下來,您可以看到“deptno”已經(jīng)帶上了@Id注釋,意味著它就是主關(guān)鍵字屬性。
As you can see in Listing 1, the only persistence-specific code associated with the User class is the @Id annotation.
正如在清單1中看到的,與User類相關(guān)的惟一特定于持久性的代碼是@Id注釋。
The most obvious meta-annotation is one that allows you to indicate which program elements can have annotations of the defined type.
最明顯的元注釋就是允許何種程序元素具有定義的注釋類型。
An annotation is just a generalization of a comment.
注解只是評(píng)論的泛化。
Probably the next addition you ll think of is to set some default values for the annotation.
您可能已經(jīng)想到,下一步就要為注釋設(shè)置某個(gè)默認(rèn)值。
An annotation type looks a lot like an ordinary class, but it has some unique properties.
注釋類型看起來很像普通的類,但是有一些特有的性質(zhì)。
Each persistence context manages a set of entities, which are Java objects that have been annotated with the @Entity annotation.
每個(gè)持久化上下文管理一組實(shí)體,這些實(shí)體是標(biāo)有@Entity注釋的Java對(duì)象。
I ll explain some of the design opportunities presented by using an AOP construct to supply annotation toward the end of this article.
在本文最后,我將說明使用AOP構(gòu)造提供注釋帶來的一些設(shè)計(jì)可能性。
A public setter method might be used to inject a property value even when the @Property annotation on the field is not there.
甚至在字段上沒有@Property注釋時(shí),也可以使用公共Setter方法來注入屬性值。
Once we have defined the annotations model correctly, XML should be close to a transposition, just another language.
一旦我們正確定義了Annotation模型,我們就無需再使用XML了,這僅僅是另一種語言。
You want this to be the primary key for your table, so use the @Id annotation to declare this.
想要它成為表的主鍵,使用@Id注釋來聲明。
You can use annotation properties that accept the size of a parameter in terms of another parameter , but you must use correct data type .
可以使用接受某個(gè)參數(shù)的大小作為另一個(gè)參數(shù)的批注屬性,但是必須使用正確的數(shù)據(jù)類型。
Injecting the desired transactional behavior with an annotation like @Required seems like a good solution.
使用像@Required一樣的注釋移入所需要的事務(wù)處理行為看上去是一個(gè)很好的解決方法。
In this column, I've set out what I see as the weaknesses of an annotation-based approach to configuration information.
在這期專欄中,我介紹了我認(rèn)為是用基于注釋的方法表示配置信息的弱點(diǎn)的地方。
As the annotation type for modularizing the wait cursor management around all methods that carry an annotation instance of that type .
作為注釋類型來模塊化等待游標(biāo)的管理,這類管理是圍繞具有這種類型的注釋實(shí)例的所有方法進(jìn)行的。
Note that this annotation type doesn't have a single-member variable, so you gain nothing by naming one of the variables value.
因?yàn)?/c>該注釋類型的成員變量不是一個(gè),所以將一個(gè)變量命名為value沒有任何意義。
Browse through PhoneBookEntryBean. java, shown in Listing 3, to see the annotation style that XDoclet uses.
請(qǐng)瀏覽清單3所示的PhoneBookEntryBean.java,查看XDoclet使用的標(biāo)注樣式。