Examples of OsgiServiceList


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

    BundleContext bundleContext = getBundleContext();
    ClassLoader classLoader = getAopClassLoader();
    Filter filter = getUnifiedFilter();

    if (CollectionType.LIST.equals(collectionType)) {
      collection = (comparator == null ? new OsgiServiceList(filter, bundleContext, classLoader, proxyCreator)
          : 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)
View Full Code Here

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

*/
public abstract class ServiceListTst extends ServiceCollectionTest {

  protected Collection createCollection() {
    ClassLoader classLoader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundleContext.getBundle());
    OsgiServiceList col = new OsgiServiceList(null, bundleContext, classLoader, null);
    col.setRequiredAtStartup(false);
    // col.setInterfaces(new Class[] { Date.class });
    col.afterPropertiesSet();
    return col;
  }
View Full Code Here

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

    col = (OsgiServiceList) super.col;
    iter = col.listIterator();
  }

  OsgiServiceCollection createCollection() {
    return new OsgiServiceList(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.