|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.swissbox.tinybundles.core.intern.TinyBundleImpl
public class TinyBundleImpl
Our default implementation of TinyBundle. An instance should be retrieved via TinyBundles.newBundle() factory method.
| 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 |
|---|
public TinyBundleImpl(org.ops4j.store.Store<InputStream> bstore)
public TinyBundleImpl(InputStream in,
org.ops4j.store.Store<InputStream> bstore)
| Method Detail |
|---|
public TinyBundle add(Class clazz)
TinyBundle
add in interface TinyBundleclazz - content to be copied into bundle.
public TinyBundle remove(Class content)
TinyBundle
remove in interface TinyBundlecontent - class to be removed
public TinyBundle add(String name,
URL url)
TinyBundle
add in interface TinyBundlename - final path inside the jarurl - content to be copied into bundle.
public TinyBundle add(String name,
InputStream content)
TinyBundle
add in interface TinyBundlename - final path inside the jarcontent - content to be copied into bundle.
public InputStream build(BuildableBundle builder)
TinyBundle
build in interface TinyBundlebuilder - Instance may be retrieved from {TinyBundles} factory methods.
public InputStream build()
TinyBundle
build in interface TinyBundle
public TinyBundle set(String key,
String value)
set in interface TinyBundlepublic TinyBundle removeResource(String key)
removeResource in interface TinyBundlepublic TinyBundle removeHeader(String key)
removeHeader in interface TinyBundle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||