|
||||||||||
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(java.io.InputStream in,
org.ops4j.store.Store<java.io.InputStream> bstore)
|
|
TinyBundleImpl(org.ops4j.store.Store<java.io.InputStream> bstore)
|
Method Summary | |
---|---|
TinyBundle |
add(java.lang.Class clazz)
Add a class to the current bundle. |
TinyBundle |
add(java.lang.String name,
java.io.InputStream content)
Add a resource to the current bundle (to be built). |
TinyBundle |
add(java.lang.String name,
java.net.URL url)
Add a resource to the current bundle (to be built). |
java.io.InputStream |
build()
When you are done adding stuff to *this* you can call this method to go to next step. |
java.io.InputStream |
build(BuildableBundle builder)
When you are done adding stuff to *this* you can call this method to go to next step. |
TinyBundle |
remove(java.lang.Class content)
remove a class to the current bundle. |
TinyBundle |
removeHeader(java.lang.String key)
|
TinyBundle |
removeResource(java.lang.String key)
|
TinyBundle |
set(java.lang.String key,
java.lang.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<java.io.InputStream> bstore)
public TinyBundleImpl(java.io.InputStream in, org.ops4j.store.Store<java.io.InputStream> bstore)
Method Detail |
---|
public TinyBundle add(java.lang.Class clazz)
TinyBundle
add
in interface TinyBundle
clazz
- content to be copied into bundle.
public TinyBundle remove(java.lang.Class content)
TinyBundle
remove
in interface TinyBundle
content
- class to be removed
public TinyBundle add(java.lang.String name, java.net.URL url)
TinyBundle
add
in interface TinyBundle
name
- final path inside the jarurl
- content to be copied into bundle.
public TinyBundle add(java.lang.String name, java.io.InputStream content)
TinyBundle
add
in interface TinyBundle
name
- final path inside the jarcontent
- content to be copied into bundle.
public java.io.InputStream build(BuildableBundle builder)
TinyBundle
build
in interface TinyBundle
builder
- Instance may be retrieved from {TinyBundles} factory methods.
public java.io.InputStream build()
TinyBundle
build
in interface TinyBundle
public TinyBundle set(java.lang.String key, java.lang.String value)
set
in interface TinyBundle
public TinyBundle removeResource(java.lang.String key)
removeResource
in interface TinyBundle
public TinyBundle removeHeader(java.lang.String key)
removeHeader
in interface TinyBundle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |