Package org.foo.dosgi.registry

Examples of org.foo.dosgi.registry.RegistryServiceReference


    references.put(ref, reg);
    notify(new RegistryEvent(this, reg, RegistryEvent.Type.ADDED));
  }

  public void unregisterService(ServiceReference ref) {
    RegistryServiceReference reg = references.remove(ref);
    notify(new RegistryEvent(this, reg, RegistryEvent.Type.REMOVED));
  }
View Full Code Here


      if ( count == 0 ) {
        watches.remove(removed);
        log.info("Removing watch " + clazz + " -> " + filter);
        for (Iterator<RegistryServiceReference> iter = regs.keySet()
            .iterator(); iter.hasNext();) {
          RegistryServiceReference ref = iter.next();
          if (removed.matches(ref)) {
            boolean found = false;
            for (Watch w : watches.keySet()) {
              if (w.matches(ref)) {
                found = true;
View Full Code Here

      }
    }
  }

  public void handleEvent(RegistryEvent event) {
    RegistryServiceReference ref = event.getReference();

    synchronized (watches) {
      switch (event.getType()) {
        case ADDED:
          handleAdd(ref);
View Full Code Here

TOP

Related Classes of org.foo.dosgi.registry.RegistryServiceReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.