|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| 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 |
|---|
TinyBundle add(String name,
URL content)
name - final path inside the jarcontent - content to be copied into bundle.
TinyBundle add(String name,
InputStream content)
name - final path inside the jarcontent - content to be copied into bundle.
TinyBundle add(Class content)
content - content to be copied into bundle.
TinyBundle remove(Class content)
content - class to be removed
InputStream build(BuildableBundle builder)
builder - Instance may be retrieved from {TinyBundles} factory methods.
InputStream build()
TinyBundle set(String key,
String value)
TinyBundle removeResource(String key)
TinyBundle removeHeader(String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||