Package org.eclipse.osgi.framework.internal.core

Examples of org.eclipse.osgi.framework.internal.core.AbstractBundle


                                             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


     
    public boolean equals(Object o) {
      if (!(o instanceof SignerWrapper))
        return false;
      SignerWrapper other = (SignerWrapper) o;
      AbstractBundle matchBundle = (AbstractBundle) (bundle != null ? bundle : other.bundle);
      String matchPattern = bundle != null ? other.pattern : pattern;
      return matchBundle.getBundleData().matchDNChain(matchPattern);
    }
View Full Code Here

      throw new IllegalArgumentException("ConditionInfo must be of type \"" + CONDITION_TYPE + "\"");
    String[] args = info.getArgs();
    if (args.length != 1)
      throw new IllegalArgumentException("Illegal number of args: " + args.length);
    // implementation specific code used here
    AbstractBundle ab = (AbstractBundle) bundle;
    return ab.getBundleData().matchDNChain(args[0]) ? Condition.TRUE : Condition.FALSE;
  }
View Full Code Here

                                             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

      if (fragments == null)
        return null; // no fragments
      // search the fragments for patch fragments
      ArrayList patchList = new ArrayList(fragments.length);
      for (int i = 0; i < fragments.length; i++) {
        AbstractBundle fragment = (AbstractBundle) fragments[i];
        BaseData fragmentData = (BaseData) fragment.getBundleData();
        // The PFStorageHook knows if this is a patch fragment
        PFStorageHook storageHook = (PFStorageHook) fragmentData.getStorageHook(PFStorageHook.KEY);
        if (storageHook.isPatchFragment()) {
          if (PFConfigurator.DEBUG)
            System.out.println("Found patch fragment: " + fragmentData.toString()); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.framework.internal.core.AbstractBundle

Copyright © 2018 www.massapicom. 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.