User loginNavigation |
Attribute-Oriented Programming with Java 1.5From Peeking Inside the Box. An interesting look at the addition of annotations to the next generation Java. Not sure what the main purpose of this metadata is, but the author discusses it in terms of debugging and instrumentation. Annotation definitions look a lot like interface definitions, but the keyword @interface is used instead of interface and only methods are supported (though they act more like fields). public @interface Status { String value(); } I can now define my method as follows: @Status("Connecting to database") public void connectToDB (String url) { ... } |
Browse archivesActive forum topics |
Recent comments
1 hour 32 min ago
5 hours 43 min ago
18 hours 17 min ago
18 hours 19 min ago
18 hours 47 min ago
1 day 2 hours ago
1 day 2 hours ago
1 day 2 hours ago
1 day 13 hours ago
1 day 14 hours ago