Prev Next

Listeners Considered Harmful - The “Whiteboard” Pattern - Introduction


Introduction

The purpose of this whitepaper is to explain a pattern that was found to be very successful in the usage of the OSGi specifications. The dynamic nature of the OSGi service model requires extra effort from the programmer to track the changes. The traditional model with listeners was found to be overly complicated and error prone. This paper analyzes the issues and proposes an easier and inherently more reliable model.