com.springsource.util.osgi.manifest
Interface ImportBundle

All Superinterfaces:
Parseable
All Known Implementing Classes:
StandardImportBundle

public interface ImportBundle
extends Parseable

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


Method Summary
 ImportedBundle addImportedBundle(java.lang.String bundleSymbolicName)
          Adds an import of the bundle with the supplied symbolic name to this Import-Bundle header.
 java.util.List<ImportedBundle> getImportedBundles()
          Returns a List of the bundles that are imported.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Method Detail

getImportedBundles

java.util.List<ImportedBundle> getImportedBundles()
Returns a List of the bundles that are imported. Returns an empty List if no bundles are imported.

Returns:
the imported bundles.

addImportedBundle

ImportedBundle addImportedBundle(java.lang.String bundleSymbolicName)
Adds an import of the bundle with the supplied symbolic name to this Import-Bundle header.

Parameters:
bundleSymbolicName - The name of the imported bundle
Returns:
the newly-created ImportBundle.