private void sendUpdateEvent( ServiceReference serviceReference, String servicePid, String factoryPid, ConfigurationDictionary dictionary) { asyncDispatcher.send( new UpdateEvent(this, context, serviceReference, servicePid, factoryPid, dictionary)); }
private void sendConfigurationEvent(ConfigurationEvent event) { ServiceReference[] serviceReferences = null; try { serviceReferences = context.getServiceReferences(ConfigurationListener.class.getName(), null); } catch (InvalidSyntaxException ignored) { } if (serviceReferences != null) { // we have listeners asyncDispatcher.send(new ListenerEvent(context, serviceReferences, event)); } }
public synchronized void stop() { asyncDispatcher.stop(); }