Package org.osgi.framework.hooks.resolver

Examples of org.osgi.framework.hooks.resolver.ResolverHook.end()


    ResolverHook hook = beginHook(state, Arrays.asList((BundleRevision[]) bundles));
    try {
      return getUnsatisfiedLeaves(state, bundles, hook);
    } finally {
      if (hook != null)
        hook.end();
    }
  }

  private ResolverHook beginHook(State state, Collection<BundleRevision> triggers) {
    if (!(state instanceof StateImpl))
View Full Code Here


    ResolverHook hook = beginHook(bundle.getContainingState(), Arrays.asList(new BundleRevision[] {bundle}));
    try {
      return getUnsatisfiedConstraints(bundle, hook);
    } finally {
      if (hook != null)
        hook.end();
    }
  }

  private VersionConstraint[] getUnsatisfiedConstraints(BundleDescription bundle, ResolverHook hook) {
    State containingState = bundle.getContainingState();
View Full Code Here

    ResolverHook hook = beginHook(constraint.getBundle().getContainingState(), Arrays.asList(new BundleRevision[] {constraint.getBundle()}));
    try {
      return isResolvable(constraint, hook);
    } finally {
      if (hook != null)
        hook.end();
    }
  }

  private boolean isResolvable(ImportPackageSpecification constraint, ResolverHook hook) {
    ExportPackageDescription[] exports = constraint.getBundle().getContainingState().getExportedPackages();
View Full Code Here

    ResolverHook hook = beginHook(constraint.getBundle().getContainingState(), Arrays.asList(new BundleRevision[] {constraint.getBundle()}));
    try {
      return isBundleConstraintResolvable(constraint, namespace, hook);
    } finally {
      if (hook != null)
        hook.end();
    }
  }

  private boolean isBundleConstraintResolvable(VersionConstraint constraint, String namespace, ResolverHook hook) {
    BundleDescription[] availableBundles = constraint.getBundle().getContainingState().getBundles(constraint.getName());
View Full Code Here

        if (savedChanges.getChanges().length > 0)
          updateTimeStamp();
        return savedChanges;
      } finally {
        if (currentHook != null)
          currentHook.end();
        resolving = false;
      }
    }
  }
View Full Code Here

        setDynamicCacheChanged(true);
        return result;
      } finally {
        resolving = false;
        if (currentHook != null)
          currentHook.end();
      }
    }

  }
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.