OPS4J Pax Swissbox :: TinyBundles 1.3.1

org.ops4j.pax.swissbox.tinybundles.core
Interface TinyBundle

All Known Implementing Classes:
TinyBundleImpl

public interface TinyBundle

Main type when making bundles with the TinyBundles library. Get an instance from TinyBundles Factory, add resources and call "prepare" to go to the next finalization step.

Since:
Apr 9, 2009
Author:
Toni Menzel (tonit)

Method Summary
 TinyBundle add(Class content)
          Add a class to the current bundle.
 TinyBundle add(String name, InputStream content)
          Add a resource to the current bundle (to be built).
 TinyBundle add(String name, URL content)
          Add a resource to the current bundle (to be built).
 InputStream build()
          When you are done adding stuff to *this* you can call this method to go to next step.
 InputStream build(BuildableBundle builder)
          When you are done adding stuff to *this* you can call this method to go to next step.
 TinyBundle remove(Class content)
          remove a class to the current bundle.
 TinyBundle removeHeader(String key)
           
 TinyBundle removeResource(String key)
           
 TinyBundle set(String key, String value)
           
 

Method Detail

add

TinyBundle add(String name,
               URL content)
Add a resource to the current bundle (to be built).

Parameters:
name - final path inside the jar
content - content to be copied into bundle.
Returns:
*this*

add

TinyBundle add(String name,
               InputStream content)
Add a resource to the current bundle (to be built).

Parameters:
name - final path inside the jar
content - content to be copied into bundle.
Returns:
*this*

add

TinyBundle add(Class content)
Add a class to the current bundle.

Parameters:
content - content to be copied into bundle.
Returns:
*this*

remove

TinyBundle remove(Class content)
remove a class to the current bundle.

Parameters:
content - class to be removed
Returns:
*this*

build

InputStream build(BuildableBundle builder)
When you are done adding stuff to *this* you can call this method to go to next step.

Parameters:
builder - Instance may be retrieved from {TinyBundles} factory methods.
Returns:
Next step in the bundle making process.

build

InputStream build()
When you are done adding stuff to *this* you can call this method to go to next step. The BND based builder will be used for your convenience.

Returns:
Next step in the bundle making process.

set

TinyBundle set(String key,
               String value)

removeResource

TinyBundle removeResource(String key)

removeHeader

TinyBundle removeHeader(String key)

OPS4J Pax Swissbox :: TinyBundles 1.3.1

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