Package org.eclipse.sisu.peaberry

Examples of org.eclipse.sisu.peaberry.ServiceRegistry.lookup()


            // delay lookup until absolutely necessary
            public Iterator<Import<T>> iterator() {
              if (null == iterable) {
                synchronized (this) {
                  if (null == iterable) {
                    iterable = reg.lookup(clazz, filter);
                  }
                }
              }
              return iterable.iterator();
            }
View Full Code Here


  Iterable<Import<T>> getImports(final Injector injector, final boolean isConcurrent) {
    final ServiceRegistry serviceRegistry = registry.get(injector);
    final AttributeFilter attributeFilter = getFilter(injector);

    final Iterable<Import<T>> imports = serviceRegistry.lookup(clazz, attributeFilter);

    // enable outjection, but only if it's going to a different watcher
    ServiceWatcher<? super T> serviceWatcher = watcher.get(injector);
    if (null != serviceWatcher && serviceRegistry != serviceWatcher) { // NOPMD
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.