Examples of BundleLoaderProxy


Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    boolean exporting = false;

    if (framework.isActive()) {
      if (state == RESOLVED) {
        BundleLoaderProxy curProxy = getLoaderProxy();
        exporting = curProxy.inUse();
        if (exporting) {
          // make sure the BundleLoader is created.
          curProxy.getBundleLoader().createClassLoader();
        } else
          BundleLoader.closeBundleLoader(proxy);
        state = INSTALLED;
        proxy = null;
        fragments = null;
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    boolean exporting = false;

    if (framework.isActive()) {
      if (state == RESOLVED) {
        BundleLoaderProxy curProxy = getLoaderProxy();
        exporting = curProxy.inUse();
        if (exporting) {
          // make sure the BundleLoader is created.
          curProxy.getBundleLoader().createClassLoader();
        } else
          BundleLoader.closeBundleLoader(proxy);

        state = INSTALLED;
        proxy = null;
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    // need to flush the manifest cache in case the attaching fragment provides translations
    manifestLocalization = null;
  }

  protected BundleLoader getBundleLoader() {
    BundleLoaderProxy curProxy = getLoaderProxy();
    return curProxy == null ? null : curProxy.getBundleLoader();
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    if (proxy != null)
      return proxy;
    BundleDescription bundleDescription = getBundleDescription();
    if (bundleDescription == null)
      return null;
    proxy = new BundleLoaderProxy(this, bundleDescription);
    // Note that BundleLoaderProxy is a BundleReference
    // this is necessary to ensure the resolver can continue
    // to provide BundleRevision objects to resolver hooks.
    bundleDescription.setUserObject(proxy);
    return proxy;
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

   */
  public ClassLoader getClassLoader() {
    SecurityManager sm = System.getSecurityManager();
    if (sm != null)
      sm.checkPermission(new RuntimePermission("getClassLoader")); //$NON-NLS-1$
    BundleLoaderProxy curProxy = getLoaderProxy();
    BundleLoader loader = curProxy == null ? null : curProxy.getBundleLoader();
    BundleClassLoader bcl = loader == null ? null : loader.createClassLoader();
    return (bcl instanceof ClassLoader) ? (ClassLoader) bcl : null;
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    boolean exporting = false;

    if (framework.isActive()) {
      if (state == RESOLVED) {
        BundleLoaderProxy curProxy = getLoaderProxy();
        exporting = curProxy.inUse();
        if (exporting) {
          // add the bundle data to the list of removals
          framework.packageAdmin.addRemovalPending(bundledata);
          // make sure the BundleLoader is created.
          curProxy.getBundleLoader().createClassLoader();
        } else
          BundleLoader.closeBundleLoader(proxy);
        state = INSTALLED;
        proxy = null;
        fragments = null;
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    boolean exporting = false;

    if (framework.isActive()) {
      if (state == RESOLVED) {
        BundleLoaderProxy curProxy = getLoaderProxy();
        exporting = curProxy.inUse();
        if (exporting) {
          // add the bundle data to the list of removals
          framework.packageAdmin.addRemovalPending(bundledata);
          // make sure the BundleLoader is created.
          curProxy.getBundleLoader().createClassLoader();
        } else
          BundleLoader.closeBundleLoader(proxy);

        state = INSTALLED;
        proxy = null;
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    }
    manifestLocalization = null;
  }

  protected BundleLoader getBundleLoader() {
    BundleLoaderProxy curProxy = getLoaderProxy();
    return curProxy == null ? null : curProxy.getBundleLoader();
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

    if (proxy != null)
      return proxy;
    BundleDescription bundleDescription = getBundleDescription();
    if (bundleDescription == null)
      return null;
    proxy = new BundleLoaderProxy(this, bundleDescription);
    bundleDescription.setUserObject(proxy);
    return proxy;
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.loader.BundleLoaderProxy

   */
  public ClassLoader getClassLoader() {
    SecurityManager sm = System.getSecurityManager();
    if (sm != null)
      sm.checkPermission(new RuntimePermission("getClassLoader")); //$NON-NLS-1$
    BundleLoaderProxy curProxy = getLoaderProxy();
    BundleLoader loader = curProxy == null ? null : curProxy.getBundleLoader();
    BundleClassLoader bcl = loader == null ? null : loader.createClassLoader();
    return (bcl instanceof ClassLoader) ? (ClassLoader) bcl : null;
  }
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.