BT

Towards Generics Support for OSGi

| by Alex Blewitt Follow 4 Followers on Jun 03, 2009. Estimated reading time: less than one minute |

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 Stage
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.

Tell us what you think

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

Email me replies to any of my messages in this thread
Community comments

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

Discuss
BT