开发者

What is annotations? In simple terms?

In Groovy++ I often hear of the term Annotations. Can anyone explai开发者_如何学Pythonn me what is that in simple terms?


In short It's a way to label a piece of code. But it's not Groovy specific thing.

These labels can be used as meta-data by other applications to perform tasks like identifying unit test, dependency injection, or just a way to tell someone that a method is deprecated.

Here is a link to some java documentation.


Some basic info to get you started.

http://groovy.codehaus.org/Annotations+with+Groovy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜