OPS4J Pax Swissbox :: TinyBundles 1.3.1

org.ops4j.pax.swissbox.tinybundles.dp.intern
Class TinyDPImpl

java.lang.Object
  extended by org.ops4j.pax.swissbox.tinybundles.dp.intern.TinyDPImpl
All Implemented Interfaces:
TinyDP

public class TinyDPImpl
extends Object
implements TinyDP

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

TinyDPImpl

public TinyDPImpl(DPBuilder builder,
                  InputStream parent,
                  Bucket bucket,
                  org.ops4j.store.Store<InputStream> cache)
Method Detail

setBundle

public TinyDP setBundle(String s,
                        TinyBundle bundle)
                 throws IOException
Description copied from interface: TinyDP
convinient adapter for setBundle(String,InputStream)

Specified by:
setBundle in interface TinyDP
Parameters:
s - identifier of Name parameter in DP manifest
bundle - content of this resource
Returns:
this (fluent api)
Throws:
IOException - in case of an IO error when processing inp

setBundle

public TinyDP setBundle(String name,
                        String inp)
                 throws IOException
Description copied from interface: TinyDP
convenient adapter for setBundle(String,InputStream)

Specified by:
setBundle in interface TinyDP
Parameters:
name - identifier of Name parameter in DP manifest
inp - content of this resource
Returns:
this (fluent api)
Throws:
IOException - if something goes wrong while interpreting the url

setBundle

public TinyDP setBundle(String name,
                        InputStream inp)
                 throws IOException
Description copied from interface: TinyDP
the very basic way to add a bundle.

Specified by:
setBundle in interface TinyDP
Parameters:
name - identifier of Name parameter in DP manifest
inp - content of this resource
Returns:
this
Throws:
IOException - in case of an IO error when processing inp

setResource

public TinyDP setResource(String name,
                          InputStream inp)
                   throws IOException
Specified by:
setResource in interface TinyDP
Throws:
IOException

setResource

public TinyDP setResource(String name,
                          String url)
                   throws IOException
Specified by:
setResource in interface TinyDP
Throws:
IOException

set

public TinyDP set(String key,
                  String value)
Description copied from interface: TinyDP
Meta Data that will appear in the Main Section of this DP Meta Inf Manifest

Specified by:
set in interface TinyDP
Parameters:
key - to be used
value - to be used
Returns:
this

setSymbolicName

public TinyDP setSymbolicName(String value)
Description copied from interface: TinyDP
Shortcut for set( Constants.DEPLOYMENTPACKAGE_SYMBOLICMAME, value )

Specified by:
setSymbolicName in interface TinyDP
Parameters:
value - to be used
Returns:
this

setVersion

public TinyDP setVersion(String value)
Description copied from interface: TinyDP
Shortcut for set( Constants.DEPLOYMENTPACKAGE_VERSION, value )

Specified by:
setVersion in interface TinyDP
Parameters:
value - to be used
Returns:
this

remove

public TinyDP remove(String s)
Specified by:
remove in interface TinyDP

build

public InputStream build()
                  throws IOException
Specified by:
build in interface TinyDP
Throws:
IOException

OPS4J Pax Swissbox :: TinyBundles 1.3.1

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