Package org.apache.aries.subsystem.core.internal.BundleResourceInstaller

Examples of org.apache.aries.subsystem.core.internal.BundleResourceInstaller.BundleConstituent


    removeReference();
    // Always remove the bundle as a constituent of the subsystem being
    // acted upon. The bundle may or may not actually be a constituent.
    // This covers the case of unscoped subsystems with shared content
    // where the resource may not be uninstallable.
    removeConstituent(subsystem, new BundleConstituent(null, (BundleRevision)resource));
    if (!isResourceUninstallable())
      return;
    // If the resource is uninstallable, remove it from the "provisioned to"
    // subsystem in case it was a dependency. The "provisioned to" subsystem
    // may be the same subsystem as the one being acted upon. This covers
    // the case where a dependency of the subsystem being acted upon was
    // provisioned to another subsystem but is not content of the other
    // subsystem.
    removeConstituent(provisionTo, new BundleConstituent(null, (BundleRevision)resource));
    if (isBundleUninstallable())
      uninstallBundle();
  }
View Full Code Here


        return;
      revision = (BundleRevision)o[0];
      subsystems = (Collection<BasicSubsystem>)o[1];
    }
    else
      subsystems = Activator.getInstance().getSubsystems().getSubsystemsByConstituent(new BundleConstituent(null, revision));
    for (BasicSubsystem subsystem : subsystems)
      ResourceUninstaller.newInstance(revision, subsystem).uninstall();
  }
View Full Code Here

        return Collections.unmodifiableMap(wirings);
      }
     
      private void addWiring(Resource resource, Map<Resource, Wiring> wirings) {
        if (resource instanceof BundleConstituent) {
          BundleConstituent bc = (BundleConstituent)resource;
          wirings.put(bc.getBundle().adapt(BundleRevision.class), bc.getWiring());
        }
        else if (resource instanceof BundleRevision) {
          BundleRevision br = (BundleRevision)resource;
          wirings.put(br, br.getWiring());
        }
View Full Code Here

TOP

Related Classes of org.apache.aries.subsystem.core.internal.BundleResourceInstaller.BundleConstituent

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.