org.ops4j.pax.url.dir.internal.bundle
Class BundleBuilder

java.lang.Object
  extended by org.ops4j.pax.url.dir.internal.bundle.BundleBuilder

public class BundleBuilder
extends java.lang.Object

Responsible for creating the on-the fly bundle.

Since:
May 29, 2008
Author:
Toni Menzel (toni@okidokiteam.com), Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
BundleBuilder(java.util.Properties ref, ResourceLocator resourceLocator)
          Constructor.
 
Method Summary
 java.io.InputStream build()
          Builds an osgi bundle out of settings given while creating this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleBuilder

public BundleBuilder(java.util.Properties ref,
                     ResourceLocator resourceLocator)
Constructor.

Parameters:
ref - name of test class
resourceLocator - locator that gathers all resources that have to be inside the test probe
Method Detail

build

public java.io.InputStream build()
Builds an osgi bundle out of settings given while creating this instance. Output is being asynchronously in a new thread when reading from the InputStream returned by this method.

Returns:
an inputstream that must be flushed in order to actually invoke the bundle build process.


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.