|
Java generics without the pain, Part 1
This month's Diagnosing Java code introduces generic types and the features to support them scheduled for inclusion in Tiger, Java version 1.5, scheduled for release late in 2003. Eric Allen offers code samples that illustrate the ups and downs around generic types by focusing on such Tiger features as limitations on primitive types, constrained generics, and polymorphic methods. (Upcoming columns will discuss other features such as specific incarnations of generic types in Tiger and potential extensions to generic types beyond Tiger.) Share your thoughts on this article with the author and other readers in the discussion forum by clicking Discuss at the top or bottom of the article.
|
|
Java generics without the pain, Part 2
This month Eric Allen continues the discussion of generic types in JSR-14 and Tiger. He outlines several limitations imposed in those Java extensions and explains how the limitations are necessitated by the implementation strategy used by the compilers of these extended languages.
|
|
Catching more errors at compile time with Generic Java
The current way of implementing generic utility classes, such as Vector and Hashtable, requires many unsightly casts, which may cause run-time errors. Parametric types provide an elegant way to implement generic utility classes that alleviates the need to cast and allows more errors to be caught at compile time. Generic Java is a proposal to add parametric types to the Java language that supports legacy code and pre-existing Java virtual machines.
|
|
Aspect-Oriented Annotations
Annotations are one of the new language features in J2SE 5.0, and allow you to attach metadata onto any Java construct. Meanwhile, Aspect-Oriented Programming (AOP) is a fairly new technology that makes it easier for you to encapsulate behavior that is usually messier, harder, or impossible to do with regular object-oriented (OO) techniques.
|
|
Standardize annotations with Web services
Annotation is the process of associating metadata with data. This article presents a Web services API intended as an industry standard for client-server systems designed to facilitate the structured annotation of heterogeneous data. The author presents the goals of the Annotation Web services API and then discusses how those goals motivate the data model around which the API operates. The author also discusses 29 methods that comprise the API including two examples of possible sequences of API calls to create and retrieve annotations.
|