Examples of BundleLoader


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

    // validate the composite manifest
    CompositeHelper.validateCompositeManifest(compositeManifest);
    if (isResolved()) {
      // force the class loader creation before updating the surrogate to cache the current state
      // this is to allow for lazy updates of composite bundles
      BundleLoader loader = getBundleLoader();
      if (loader != null)
        loader.createClassLoader();
    }
    try {
      Map frameworkConfig = getFrameworkConfig();
      // first update the parent companion and disable it
      updateSurrogate(getBundleData(), null, null);
View Full Code Here

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

    // this is needed to fix bug 259903.
    for (int i = 0; i < bundles.length; i++) {
      // only need to do this for host bundles which are resolved
      if (bundles[i] instanceof BundleHost && bundles[i].isResolved()) {
        // getting the BundleLoader object populates the require-bundle sources
        BundleLoader loader = ((BundleHost) bundles[i]).getBundleLoader();
        if (loader != null)
          // need to explicitly get the import package sources
          loader.getImportedSources(null);
      }
    }
  }
View Full Code Here

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

    public BaseClassLoader createClassLoader(ClassLoader parent,
                                             ClassLoaderDelegate delegate,
                                             BundleProtectionDomain domain,
                                             BaseData data,
                                             String[] classpath) {
        BundleLoader loader = (BundleLoader) delegate;
        AbstractBundle bundle = loader.getBundle();
        String packages = dynamicPackages.get(bundle.getBundleId());
        if (packages != null) {
            try {
                loader.addDynamicImportPackage(ManifestElement.parseHeader(Constants.DYNAMICIMPORT_PACKAGE, packages));
            } catch (BundleException e) {
                throw new RuntimeException(e);
            }
        }
       
View Full Code Here

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

    // validate the composite manifest
    CompositeHelper.validateCompositeManifest(compositeManifest);
    if (isResolved()) {
      // force the class loader creation before updating the surrogate to cache the current state
      // this is to allow for lazy updates of composite bundles
      BundleLoader loader = getBundleLoader();
      if (loader != null)
        loader.createClassLoader();
    }
    try {
      Map frameworkConfig = getFrameworkConfig();
      // first update the parent companion and disable it
      updateSurrogate(getBundleData(), null, null);
View Full Code Here

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

    public BaseClassLoader createClassLoader(ClassLoader parent,
                                             ClassLoaderDelegate delegate,
                                             BundleProtectionDomain domain,
                                             BaseData data,
                                             String[] classpath) {
        BundleLoader loader = (BundleLoader) delegate;
        AbstractBundle bundle = loader.getBundle();
        String packages = dynamicPackages.get(bundle.getBundleId());
        if (packages != null) {
            try {
                loader.addDynamicImportPackage(ManifestElement.parseHeader(Constants.DYNAMICIMPORT_PACKAGE, packages));
            } catch (BundleException e) {
                throw new RuntimeException(e);
            }
        }
       
View Full Code Here

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

  public BaseClassLoader createClassLoader(ClassLoader parent,
      ClassLoaderDelegate delegate, BundleProtectionDomain domain,
      BaseData data, String[] bundleclasspath) {
    if (analyzer.shouldInstrumentClassesInBundle(data.getSymbolicName())) {
      BundleLoader loader = (BundleLoader) delegate;
      try {
        loader.addDynamicImportPackage(ManifestElement.parseHeader(
            Constants.DYNAMICIMPORT_PACKAGE, analyzer
                .getRuntimePackages()));
      } catch (BundleException be) {
        throw new RuntimeException(be);
      }
View Full Code Here

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

  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.internal.loader.BundleLoader

public class EquinoxWorker extends DefaultWorker implements FrameworkUtilWorker {

    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.internal.loader.BundleLoader

  public BaseClassLoader createClassLoader(ClassLoader parent,
      ClassLoaderDelegate delegate, BundleProtectionDomain domain,
      BaseData data, String[] bundleclasspath) {
    if (analyzer.shouldInstrumentClassesInBundle(data.getSymbolicName())) {
      BundleLoader loader = (BundleLoader) delegate;
      try {
        loader.addDynamicImportPackage(ManifestElement.parseHeader(
            Constants.DYNAMICIMPORT_PACKAGE, analyzer
                .getRuntimePackages()));
      } catch (BundleException be) {
        throw new RuntimeException(be);
      }
View Full Code Here

Examples of org.richfaces.l10n.BundleLoader

    private final java.util.logging.Logger jdkLogger;
    private MessageInterpolator messageInterpolator;

    JavaLogger(String category) {
        jdkLogger = java.util.logging.Logger.getLogger(category);
        messageInterpolator = new MessageInterpolator(new BundleLoader());
    }
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.