문제

In Groovy++ I often hear of the term Annotations. Can anyone explain 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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top