BlueprintEventDispatcher(final BundleContext bundleContext, ExecutorService sharedExecutor) {
assert bundleContext != null;
assert sharedExecutor != null;
executor = new ScheduledExecutorServiceWrapper(bundleContext, "Blueprint Event Dispatcher", new ScheduledExecutorServiceFactory() {
public ScheduledExecutorService create(String name)
{
return Executors.newScheduledThreadPool(1, new BlueprintThreadFactory(name));
}