|
OPS4J Pax Swissbox :: TinyBundles 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ops4j.pax.swissbox.tinybundles.dp.intern.TinyDPImpl
public class TinyDPImpl
Implementation that also allows Fix-Packs (See Constructors)
Constructor Summary | |
---|---|
TinyDPImpl(DPBuilder builder,
InputStream parent,
Bucket bucket,
org.ops4j.store.Store<InputStream> cache)
|
Method Summary | |
---|---|
InputStream |
build()
|
TinyDP |
remove(String s)
|
TinyDP |
set(String key,
String value)
Meta Data that will appear in the Main Section of this DP Meta Inf Manifest |
TinyDP |
setBundle(String name,
InputStream inp)
the very basic way to add a bundle. |
TinyDP |
setBundle(String name,
String inp)
convenient adapter for setBundle(String,InputStream) |
TinyDP |
setBundle(String s,
TinyBundle bundle)
convinient adapter for setBundle(String,InputStream) |
TinyDP |
setResource(String name,
InputStream inp)
|
TinyDP |
setResource(String name,
String url)
|
TinyDP |
setSymbolicName(String value)
Shortcut for set( Constants.DEPLOYMENTPACKAGE_SYMBOLICMAME, value ) |
TinyDP |
setVersion(String value)
Shortcut for set( Constants.DEPLOYMENTPACKAGE_VERSION, value ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TinyDPImpl(DPBuilder builder, InputStream parent, Bucket bucket, org.ops4j.store.Store<InputStream> cache)
Method Detail |
---|
public TinyDP setBundle(String s, TinyBundle bundle) throws IOException
TinyDP
setBundle
in interface TinyDP
s
- identifier of Name parameter in DP manifestbundle
- content of this resource
IOException
- in case of an IO error when processing inppublic TinyDP setBundle(String name, String inp) throws IOException
TinyDP
setBundle
in interface TinyDP
name
- identifier of Name parameter in DP manifestinp
- content of this resource
IOException
- if something goes wrong while interpreting the urlpublic TinyDP setBundle(String name, InputStream inp) throws IOException
TinyDP
setBundle
in interface TinyDP
name
- identifier of Name parameter in DP manifestinp
- content of this resource
IOException
- in case of an IO error when processing inppublic TinyDP setResource(String name, InputStream inp) throws IOException
setResource
in interface TinyDP
IOException
public TinyDP setResource(String name, String url) throws IOException
setResource
in interface TinyDP
IOException
public TinyDP set(String key, String value)
TinyDP
set
in interface TinyDP
key
- to be usedvalue
- to be used
public TinyDP setSymbolicName(String value)
TinyDP
setSymbolicName
in interface TinyDP
value
- to be used
public TinyDP setVersion(String value)
TinyDP
setVersion
in interface TinyDP
value
- to be used
public TinyDP remove(String s)
remove
in interface TinyDP
public InputStream build() throws IOException
build
in interface TinyDP
IOException
|
OPS4J Pax Swissbox :: TinyBundles 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |