Examples of BundleClassLoader


Examples of org.apache.xbean.osgi.bundle.util.BundleClassLoader

    private AppInfo getAppInfo(EARContext earContext, EjbModule ejbModule, Bundle bundle) throws DeploymentException {
        EarData earData = EarData.KEY.get(earContext.getGeneralData());
        if (earData.getAppInfo() == null) {

            ClassLoader bundleLoader = new BundleClassLoader(bundle);

            // temporary classloader is used for processing ejb annotations and byte code manipulation during ejb load
//            TemporaryClassLoader temporaryClassLoader = new TemporaryClassLoader(new URL[0], bundleLoader);

            // create an openejb app module for the ear containing all ejb modules
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

  }

  private void checkClassLoader() {
    BundleLoaderProxy proxy = getLoaderProxy();
    if (proxy != null && proxy.inUse() && proxy.getBundleLoader() != null) {
      BundleClassLoader loader = proxy.getBundleLoader().createClassLoader();
      loader.getResource("dummy"); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

    public List<URL> findEntries(String path, String filePattern, int options) {
      if (!hasResourcePermission() || !isInUse())
        return null;
      @SuppressWarnings("unchecked")
      List<URL> result = Collections.EMPTY_LIST;
      BundleClassLoader bcl = getBundleClassLoader();
      if (bcl != null)
        result = bcl.findEntries(path, filePattern, options);
      return Collections.unmodifiableList(result);
    }
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

    public Collection<String> listResources(String path, String filePattern, int options) {
      if (!hasResourcePermission() || !isInUse())
        return null;
      @SuppressWarnings("unchecked")
      Collection<String> result = Collections.EMPTY_LIST;
      BundleClassLoader bcl = getBundleClassLoader();
      if (bcl != null)
        result = bcl.listResources(path, filePattern, options);
      return Collections.unmodifiableCollection(result);
    }
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

  }

  private void checkClassLoader() {
    BundleLoaderProxy proxy = getLoaderProxy();
    if (proxy != null && proxy.inUse() && proxy.getBundleLoader() != null) {
      BundleClassLoader loader = proxy.getBundleLoader().createClassLoader();
      loader.getResource("dummy"); //$NON-NLS-1$
    }
  }
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

    return result;
  }

  @Override
  public Collection<String> listResources(String path, String filePattern) {
    BundleClassLoader bcl = supplier.getBundleLoader().createClassLoader();
    return bcl.listLocalResources(path, filePattern, 0);
  }
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

  public ClassLoader getClassLoader(Bundle b)
  {
    BundleHost host = (BundleHost) b;
    BundleLoaderProxy lp = host.getLoaderProxy();
    BundleLoader bl = (lp == null) ? null : lp.getBasicBundleLoader();
    BundleClassLoader cl = (bl == null) ? null : bl.createClassLoader();
   
    return ((cl instanceof ClassLoader) ? (ClassLoader)cl : null);
  }
View Full Code Here

Examples of org.eclipse.osgi.framework.adaptor.BundleClassLoader

    public ClassLoader getClassLoader(Bundle b) {
        BundleHost host = (BundleHost) b;
        BundleLoaderProxy lp = host.getLoaderProxy();
        BundleLoader bl = (lp == null) ? null : lp.getBasicBundleLoader();
        BundleClassLoader cl = (bl == null) ? null : bl.createClassLoader();

        return ((cl instanceof ClassLoader) ? (ClassLoader) cl : null);
    }
View Full Code Here

Examples of org.papoose.core.BundleClassLoader

        try
        {
            resolving = new BoundHost(bundleGeneration, importDescription);

            BundleClassLoader bundleClassLoader = bundleGeneration.getClassLoader();
            for (Wire wire : bundleClassLoader.getWires())
            {
                Candidate candidateBundle = findCandidate(wire.getBundleGeneration());
                ExportDescription exportDescription = wire.getExportDescription();

                for (String packageName : exportDescription.getPackageNames())
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.