com.springsource.util.osgi.manifest
Interface ExportPackage

All Superinterfaces:
Parseable
All Known Implementing Classes:
StandardExportPackage

public interface ExportPackage
extends Parseable

Represents the Export-Package header in a BundleManifest. Concurrent Semantics
May not be thread-safe.


Method Summary
 ExportedPackage addExportedPackage(java.lang.String packageName)
          Adds an export of the package with the supplied name to this Export-Package header.
 java.util.List<ExportedPackage> getExportedPackages()
          Returns a List of the packages that are exported.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Method Detail

getExportedPackages

java.util.List<ExportedPackage> getExportedPackages()
Returns a List of the packages that are exported. Returns an empty List if no packages are exported.

Returns:
the exported packages.

addExportedPackage

ExportedPackage addExportedPackage(java.lang.String packageName)
Adds an export of the package with the supplied name to this Export-Package header.

Parameters:
packageName - The name of the exported package.
Returns:
the newly-created ExportedPackage.