Skip to main content

Annotations vs. configuration files

No replies
kohsuke
Offline
Joined: 2003-06-09
Points: 0

from http://www-128.ibm.com/developerworks/java/library/j-cwt08025.html
Annotations let you specify metadata as part of your source code. With this feature, you can embed tool instructions in your code rather than creating separate configuration files that you then need to maintain in parallel to the source code. But, as Dennis Sosnoski explains, configuration files still have their uses, especially for aspect-like functions that cut across the source code structure of an application.