开发者

What is annotations? In simple terms?

开发者 https://www.devze.com 2023-03-29 05:29 出处:网络
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 thin

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

精彩评论

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

关注公众号