com.springsource.util.osgi.manifest.internal
Class StandardImportBundle
java.lang.Object
com.springsource.util.osgi.manifest.internal.CompoundParseable<ImportedBundle>
com.springsource.util.osgi.manifest.internal.StandardImportBundle
- All Implemented Interfaces:
- ImportBundle, Parseable
class StandardImportBundle
- extends CompoundParseable<ImportedBundle>
- implements ImportBundle
Concurrent Semantics
Not thread-safe.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StandardImportBundle
StandardImportBundle(HeaderParser parser)
addImportedBundle
public ImportedBundle addImportedBundle(java.lang.String importedBundle)
- Adds an import of the bundle with the supplied symbolic name to this
Import-Bundle
header.
- Specified by:
addImportedBundle
in interface ImportBundle
- Parameters:
importedBundle
- The name of the imported bundle
- Returns:
- the newly-created
ImportBundle
.
getImportedBundles
public java.util.List<ImportedBundle> getImportedBundles()
- Returns a
List
of the bundles that are imported. Returns an empty List
if no bundles
are imported.
- Specified by:
getImportedBundles
in interface ImportBundle
- Returns:
- the imported bundles.
parse
java.util.List<HeaderDeclaration> parse(java.lang.String parseString)
- Specified by:
parse
in class CompoundParseable<ImportedBundle>
newEntry
ImportedBundle newEntry(java.lang.String name)
-
- Specified by:
newEntry
in class CompoundParseable<ImportedBundle>