OPS4J Pax Swissbox :: TinyBundles 1.3.1

org.ops4j.pax.swissbox.tinybundles.core.intern
Class TinyBundleImpl

java.lang.Object
  extended by org.ops4j.pax.swissbox.tinybundles.core.intern.TinyBundleImpl
All Implemented Interfaces:
TinyBundle

public class TinyBundleImpl
extends Object
implements TinyBundle

Our default implementation of TinyBundle. An instance should be retrieved via TinyBundles.newBundle() factory method.

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

Constructor Summary
TinyBundleImpl(InputStream in, org.ops4j.store.Store<InputStream> bstore)
           
TinyBundleImpl(org.ops4j.store.Store<InputStream> bstore)
           
 
Method Summary
 TinyBundle add(Class clazz)
          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 url)
          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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TinyBundleImpl

public TinyBundleImpl(org.ops4j.store.Store<InputStream> bstore)

TinyBundleImpl

public TinyBundleImpl(InputStream in,
                      org.ops4j.store.Store<InputStream> bstore)
Method Detail

add

public TinyBundle add(Class clazz)
Description copied from interface: TinyBundle
Add a class to the current bundle.

Specified by:
add in interface TinyBundle
Parameters:
clazz - content to be copied into bundle.
Returns:
*this*

remove

public TinyBundle remove(Class content)
Description copied from interface: TinyBundle
remove a class to the current bundle.

Specified by:
remove in interface TinyBundle
Parameters:
content - class to be removed
Returns:
*this*

add

public TinyBundle add(String name,
                      URL url)
Description copied from interface: TinyBundle
Add a resource to the current bundle (to be built).

Specified by:
add in interface TinyBundle
Parameters:
name - final path inside the jar
url - content to be copied into bundle.
Returns:
*this*

add

public TinyBundle add(String name,
                      InputStream content)
Description copied from interface: TinyBundle
Add a resource to the current bundle (to be built).

Specified by:
add in interface TinyBundle
Parameters:
name - final path inside the jar
content - content to be copied into bundle.
Returns:
*this*

build

public InputStream build(BuildableBundle builder)
Description copied from interface: TinyBundle
When you are done adding stuff to *this* you can call this method to go to next step.

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

build

public InputStream build()
Description copied from interface: TinyBundle
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.

Specified by:
build in interface TinyBundle
Returns:
Next step in the bundle making process.

set

public TinyBundle set(String key,
                      String value)
Specified by:
set in interface TinyBundle

removeResource

public TinyBundle removeResource(String key)
Specified by:
removeResource in interface TinyBundle

removeHeader

public TinyBundle removeHeader(String key)
Specified by:
removeHeader in interface TinyBundle

OPS4J Pax Swissbox :: TinyBundles 1.3.1

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