com.springsource.util.osgi.manifest
Interface RequireBundle

All Superinterfaces:
Parseable
All Known Implementing Classes:
StandardRequireBundle

public interface RequireBundle
extends Parseable

Represents the Require-Bundle header in a BundleManifest. Concurrent Semantics
May not be thread-safe.


Method Summary
 RequiredBundle addRequiredBundle(java.lang.String requiredBundle)
          Adds a required bundle with the supplied bundle symbolic name to this Require-Bundle header.
 java.util.List<RequiredBundle> getRequiredBundles()
          Returns a List of the bundles that are required.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Method Detail

getRequiredBundles

java.util.List<RequiredBundle> getRequiredBundles()
Returns a List of the bundles that are required. Returns an empty List if no bundles are required.

Returns:
the required bundles

addRequiredBundle

RequiredBundle addRequiredBundle(java.lang.String requiredBundle)
Adds a required bundle with the supplied bundle symbolic name to this Require-Bundle header.

If there is already a required bundle with the given symbolic name, a duplicate is added and the resultant manifest will not conform to the OSGi specification. This behaviour may change: see issue DMS-548.

Parameters:
requiredBundle - the symbolic name of the required bundle
Returns:
the newly-created RequiredBundle.