org.apache.aries.application.runtime.framework.utils
Class EquinoxFrameworkUtils

java.lang.Object
  extended by org.apache.aries.application.runtime.framework.utils.EquinoxFrameworkUtils

public class EquinoxFrameworkUtils
extends Object


Constructor Summary
EquinoxFrameworkUtils()
           
 
Method Summary
static Collection<org.apache.aries.application.Content> calculateImports(Collection<org.apache.aries.application.Content> importPackage, Collection<org.apache.aries.application.Content> exportPackages)
           
static String calculateSystemPackagesToFlow(Collection<org.apache.aries.application.Content> systemExports, Collection<org.apache.aries.application.Content> imports)
          Calculates which system packages should be flowed to a child framework based on what packages the child framework imports.
static String contentToString(org.apache.aries.application.Content content)
           
static Collection<org.apache.aries.application.Content> getExportPackages(org.osgi.framework.BundleContext isolatedBundleContext)
           
static Collection<org.apache.aries.application.Content> getSystemExtraPkgs(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquinoxFrameworkUtils

public EquinoxFrameworkUtils()
Method Detail

getExportPackages

public static Collection<org.apache.aries.application.Content> getExportPackages(org.osgi.framework.BundleContext isolatedBundleContext)

getSystemExtraPkgs

public static Collection<org.apache.aries.application.Content> getSystemExtraPkgs(org.osgi.framework.BundleContext context)

calculateImports

public static Collection<org.apache.aries.application.Content> calculateImports(Collection<org.apache.aries.application.Content> importPackage,
                                                                                Collection<org.apache.aries.application.Content> exportPackages)

contentToString

public static String contentToString(org.apache.aries.application.Content content)

calculateSystemPackagesToFlow

public static String calculateSystemPackagesToFlow(Collection<org.apache.aries.application.Content> systemExports,
                                                   Collection<org.apache.aries.application.Content> imports)
Calculates which system packages should be flowed to a child framework based on what packages the child framework imports. Equinox will require anything imported by the child framework which is available from the system bundle in the parent framework to come from the system bundle in the child framework. However, we don't want to flow all the extra system packages by default since we want CBAs which use them to explicitly import them.

Parameters:
importPackage -
Returns:
Throws:
CompositeBundleCalculateException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.