public class OscarDispatchQueue
extends DispatchQueue
This is a subclass of DispatchQueue that specifically adds support
for SynchronousBundleListeners; the OSGi specification
says that synchronous bundle listeners should receive their events
immediately, i.e., they should not be delivered on a separate thread
like is the case with the DispatchQueue. To achieve this
functionality, this class overrides the dispatch method to automatically
fire any bundle events to synchronous bundle listeners using the
calling thread. In order to ensure that synchronous bundle listeners
do not receive an event twice, it wraps the passed in Dipatcher
instance so that it filters synchronous bundle listeners.