Interface LPKGDeployer


public interface LPKGDeployer
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.osgi.framework.Bundle>
    deploy(org.osgi.framework.BundleContext bundleContext, File lpkgFile)
    Deploys the LPKG file.
    Map<org.osgi.framework.Bundle,List<org.osgi.framework.Bundle>>
    Returns the deployed LPKG bundles together with their app bundles.
    toBundle(File lpkgFile)
     
  • Method Details

    • deploy

      List<org.osgi.framework.Bundle> deploy(org.osgi.framework.BundleContext bundleContext, File lpkgFile) throws IOException
      Deploys the LPKG file. This method returns the list of bundles in the LPKG file, which includes the LPKG bundle and all its app bundles (if any exist). For example, if the LPKG file included four app bundles, then five bundles are returned (i.e. one LPKG bundle and four app bundles).
      Parameters:
      bundleContext - the context used to install the bundle into the OSGi container
      lpkgFile - the LPKG file to deploy
      Returns:
      the LPKG file bundle and its included app bundles
      Throws:
      IOException - if an IO failure during installation occurred
    • getDeployedLPKGBundles

      Map<org.osgi.framework.Bundle,List<org.osgi.framework.Bundle>> getDeployedLPKGBundles()
      Returns the deployed LPKG bundles together with their app bundles.
      Returns:
      the map of bundles with the LPKG bundle as the key and the LPKG's app bundle list as the value
    • toBundle

      InputStream toBundle(File lpkgFile) throws IOException
      Throws:
      IOException