BT

InfoQ Homepage News Towards Generics Support for OSGi

Towards Generics Support for OSGi

Bookmarks

OSGi's APIs were designed against the Java 1.1 platform, and as such use older classes like Dictionary and lack some of the newer Java language features like Generics. Although this has allowed OSGi to run on anything from a high-end supercomputer to a low-end mobile phone, the sweet spot of application development (combined with Java 1.4's End-of-Life) process) is now focussed on Java 1.5, 1.6 or 1.7 (or whatever marketing monikers they happen to be known by).

To that end, there has been experimental investigation to provide a newer version of the OSGi libraries that will support generics. This has been possible with the advent of a compatibility layer (referred to as thunking) which performs on-the-fly translation between the Java 5 variant and the traditional one.

Peter Kriens and BJ Hargrave gave the TS-4966 talk at JavaOne 2009 with lessons learned from this prototype, including how OSGi can take advantage of the JSR 294 language features due to come out for 1.7. Although this is still at the investigation phase, it will further bolster the widespread adoption of OSGi.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.