Ant's
Ant's

Reputation: 13811

What is annotations? In simple terms?

In Groovy++ I often hear of the term Annotations. Can anyone explain me what is that in simple terms?

Upvotes: 0

Views: 94

Answers (2)

Chains
Chains

Reputation: 13157

Some basic info to get you started.

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

Upvotes: 1

Michael J. Lee
Michael J. Lee

Reputation: 12416

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.

Upvotes: 2

Related Questions