Lookup - A new OSGi Service Registry
Abstract
The Lookups bundle adds a new simple, elegant and powerful way to register and retrieve services in OSGi. Originally part of the NetBeans platform this mechanism has been ported to work with OSGi. In this talk I'll compare Lookups with OSGi Services, Dynamic Services, Declarative Services and Blueprint services to show the drawbacks and benefits of the individual systems.
Lookups were originally invented as a basic pattern for loosely coupled communication in the NetBeans platform. Thinking of them as a data structure they are typesave, observable maps that take class objects as keys and return instances of the class. Lookups also provide an implementation for the Service Provider Registration mechanism detailed in the JDK 1.3 specification, that is more powerful and adds a lot of additional features. Due to the simplicity, type-safety, standard compliance and performance this approach is also very useful in OSGi. In a plain Java application you simply need to drop the jar on you classpath and it works. We made this mechanism available for OSGi as well.
After this presentation participants will have:
- A good understanding of JDK 1.6 ServiceLoader mechanism
- A good understanding what the Lookup pattern is
- A better understanding about the benefits and drawbacks of different service infrastructures
- A new tool in their OSGi toolbox
Speakers
Anton Epple is a trainer and consultant at Eppleton IT Consulting in Munich Germay with more than 8 years experience in leading Java projects. My main focus is on the NetBeans Platform, which has created a lot of buzz at this years J1 with the US Army presenting the Platform as enabling technology and NDSatCom showing their Duke's Choice Award winning massive NB Platform Application in James Goslings tyoshow Keynote. My current project is helping to make OSGi fully interoperable with the platform.
As my contribution to the Java Community and Open Source technologies I'm Community Leader for the JavaTools Community at java.net, JUG Leader for the NetBeans User Group Munich and a member of the NetBeans Dream Team. I'm doing a lot of trainings including free trainings for the NetBeans Platform Certified course at various european universities:
Geertjan Wielenga
Geertjan Wielenga writes training & documentation for the NetBeans Platform. He is based in Prague, Czech Republic, where he's worked for Sun Microsystems for the past 5 years. He co-authored books about the NetBeans Platform and is also a DZone contributor.