コード例 #1
0
 private void sendUpdateEvent(
     ServiceReference serviceReference,
     String servicePid,
     String factoryPid,
     ConfigurationDictionary dictionary) {
   asyncDispatcher.send(
       new UpdateEvent(this, context, serviceReference, servicePid, factoryPid, dictionary));
 }
コード例 #2
0
  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));
    }
  }
コード例 #3
0
 public synchronized void stop() {
   asyncDispatcher.stop();
 }