public class

PlatformImpl

extends Object
java.lang.Object
   ↳ org.ops4j.pax.exam.forked.provision.PlatformImpl

Class Overview

Handles the workflow of creating the platform. Concrete platforms should implement only the PlatformBuilder interface. TODO Add unit tests

Summary

Public Constructors
PlatformImpl()
Public Methods
File download(File workDir, URL url, String displayName, Boolean overwrite, boolean checkAttributes, boolean failOnValidation, boolean downloadFeeback)
Downloads files from urls.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PlatformImpl ()

Public Methods

public File download (File workDir, URL url, String displayName, Boolean overwrite, boolean checkAttributes, boolean failOnValidation, boolean downloadFeeback)

Downloads files from urls.

Parameters
workDir the directory where to download bundles
url of the file to be downloaded
displayName to be shown during download
overwrite if the bundles should be overwritten
checkAttributes whether or not to check attributes in the manifest
failOnValidation if validation fails should or not fail with an exception (or just return null)
downloadFeeback whether or not downloading process should display fine grained progres info
Returns
  • the File corresponding to the downloaded file, or null if the bundle is invalid (not an osgi bundle)
Throws
TestContainerException if the url could not be downloaded