Examples of OsgiServiceSortedSet


Examples of org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceSortedSet

          : new OsgiServiceSortedList(filter, bundleContext, classLoader, comparator, proxyCreator));
      delegate = Collections.unmodifiableList((List) collection);
    }
    else if (CollectionType.SET.equals(collectionType)) {
      collection = (comparator == null ? new OsgiServiceSet(filter, bundleContext, classLoader, proxyCreator)
          : new OsgiServiceSortedSet(filter, bundleContext, classLoader, comparator, proxyCreator));

      delegate = Collections.unmodifiableSet((Set) collection);
    }
    else if (CollectionType.SORTED_LIST.equals(collectionType)) {
      collection = new OsgiServiceSortedList(filter, bundleContext, classLoader, comparator, proxyCreator);

      delegate = Collections.unmodifiableList((List) collection);
    }

    else if (CollectionType.SORTED_SET.equals(collectionType)) {
      collection = new OsgiServiceSortedSet(filter, bundleContext, classLoader, comparator, proxyCreator);
      delegate = Collections.unmodifiableSortedSet((SortedSet) collection);
    }

    else {
      throw new IllegalArgumentException("Unknown collection type:" + collectionType);
View Full Code Here

Examples of org.springframework.osgi.service.importer.support.internal.collection.OsgiServiceSortedSet

    col = null;
    iter = null;
  }

  OsgiServiceCollection createCollection() {
    return new OsgiServiceSortedSet(null, context, getClass().getClassLoader(), createProxyCreator(new Class[] {
        Wrapper.class, Comparable.class }));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.