|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleManifest
Represents an OSGi bundle's manifest.
Concurrent Semantics
Field Summary | |
---|---|
static java.lang.String |
IMPORT_BUNDLE
The Import-Bundle bundle manifest header. |
static java.lang.String |
IMPORT_LIBRARY
The Import-Library bundle manifest header. |
static java.lang.String |
MODULE_SCOPE
The Module-Scope bundle manifest header. |
static java.lang.String |
MODULE_TYPE
The Module-Type bundle manifest header. |
Method Summary | |
---|---|
BundleActivationPolicy |
getBundleActivationPolicy()
Returns the Bundle-ActivationPolicy header, never null . |
java.util.List<java.lang.String> |
getBundleClasspath()
Returns a List containing an item for each entry in the comma-separated
Bundle-Classpath header. |
java.lang.String |
getBundleDescription()
Returns the value of the Bundle-Description header, or null if no description is
specified. |
int |
getBundleManifestVersion()
Returns the Bundle-ManifestVersion header, or 1 if no manifest version is specified. |
java.lang.String |
getBundleName()
Returns the Bundle-Name header, or null if no name is specified. |
BundleSymbolicName |
getBundleSymbolicName()
Returns the Bundle-SymbolicName header, never null . |
java.net.URL |
getBundleUpdateLocation()
Returns the value of the Bundle-UpdateLocation header, or null if no update location is
specified. |
org.osgi.framework.Version |
getBundleVersion()
Returns the value of the Bundle-Version header, or null if no version is specified. |
DynamicImportPackage |
getDynamicImportPackage()
Returns the DynamicImport-Package header, never null . |
ExportPackage |
getExportPackage()
Returns the Export-Package header, never null . |
FragmentHost |
getFragmentHost()
Returns the Fragment-Host header, never null . |
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the header identified by the supplied name. |
ImportBundle |
getImportBundle()
Returns the Import-Bundle header, never null . |
ImportLibrary |
getImportLibrary()
Returns the Import-Library header, never null . |
ImportPackage |
getImportPackage()
Returns the Import-Package header, never null . |
java.lang.String |
getModuleScope()
Returns the value of the Module-Scope header, or null if no module scope is specified. |
java.lang.String |
getModuleType()
Returns the value of the Module-Type header, or null if no module type is specified. |
RequireBundle |
getRequireBundle()
Returns the Require-Bundle header, never null . |
void |
setBundleDescription(java.lang.String bundleDescription)
Sets the value of the Bundle-Description header. |
void |
setBundleManifestVersion(int bundleManifestVersion)
Sets the value of the Bundle-ManifestVersion header. |
void |
setBundleName(java.lang.String bundleName)
Sets the value of the Bundle-Name header. |
void |
setBundleUpdateLocation(java.net.URL bundleUpdateLocation)
Sets the value of the Bundle-UpdateLocation header. |
void |
setBundleVersion(org.osgi.framework.Version bundleVersion)
Set the value of the Bundle-Version header. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets the header with the supplied name to have the supplied value. |
void |
setModuleScope(java.lang.String moduleScope)
Sets the value of the Module-Scope header. |
void |
setModuleType(java.lang.String moduleType)
Sets the value of the Module-Type header. |
java.util.Dictionary<java.lang.String,java.lang.String> |
toDictionary()
Returns a snapshot of this manifest as a Dictionary |
void |
write(java.io.Writer writer)
Writes the contents of this manifest to the supplied writer |
Field Detail |
---|
static final java.lang.String IMPORT_BUNDLE
Import-Bundle
bundle manifest header.
static final java.lang.String IMPORT_LIBRARY
Import-Library
bundle manifest header.
static final java.lang.String MODULE_SCOPE
Module-Scope
bundle manifest header.
static final java.lang.String MODULE_TYPE
Module-Type
bundle manifest header.
Method Detail |
---|
BundleActivationPolicy getBundleActivationPolicy()
Bundle-ActivationPolicy
header, never null
.
Bundle-ActivationPolicy
header.java.util.List<java.lang.String> getBundleClasspath()
List
containing an item for each entry in the comma-separated
Bundle-Classpath
header. Returns an empty list if the manifest does not contain a
Bundle-Classpath
header.
List
of the entries in the Bundle-Classpath
header.java.lang.String getBundleDescription()
Bundle-Description
header, or null
if no description is
specified.
Bundle-Description
header.void setBundleDescription(java.lang.String bundleDescription)
Bundle-Description
header.
bundleDescription
- The bundle's descriptionint getBundleManifestVersion()
Bundle-ManifestVersion
header, or 1
if no manifest version is specified.
Bundle-ManifestVersion
header.void setBundleManifestVersion(int bundleManifestVersion)
Bundle-ManifestVersion
header.
bundleManifestVersion
- The bundle's bundle manifest versionjava.lang.String getBundleName()
Bundle-Name
header, or null
if no name is specified.
Bundle-Name
header.void setBundleName(java.lang.String bundleName)
Bundle-Name
header.
bundleName
- The bundle's nameBundleSymbolicName getBundleSymbolicName()
Bundle-SymbolicName
header, never null
.
Bundle-SymbolicName
header.java.net.URL getBundleUpdateLocation()
Bundle-UpdateLocation
header, or null
if no update location is
specified.
Bundle-UpdateLocation
header.void setBundleUpdateLocation(java.net.URL bundleUpdateLocation)
Bundle-UpdateLocation
header.
bundleUpdateLocation
- The bundle's update locationDynamicImportPackage getDynamicImportPackage()
DynamicImport-Package
header, never null
.
DynamicImport-Package
header.ExportPackage getExportPackage()
Export-Package
header, never null
.
Export-Package
header.FragmentHost getFragmentHost()
Fragment-Host
header, never null
.
Fragment-Host
header.ImportBundle getImportBundle()
Import-Bundle
header, never null
.
Import-Bundle
header.ImportLibrary getImportLibrary()
Import-Library
header, never null
.
Import-Library
header.ImportPackage getImportPackage()
Import-Package
header, never null
.
Import-Package
header.java.lang.String getModuleScope()
Module-Scope
header, or null
if no module scope is specified.
Module-Scope
header.void setModuleScope(java.lang.String moduleScope)
Module-Scope
header.
moduleScope
- The bundle's module scopejava.lang.String getModuleType()
Module-Type
header, or null
if no module type is specified.
Module-Type
header.void setModuleType(java.lang.String moduleType)
Module-Type
header.
moduleType
- The bundle's module typeRequireBundle getRequireBundle()
Require-Bundle
header, never null
.
Require-Bundle
header.org.osgi.framework.Version getBundleVersion()
Bundle-Version
header, or null
if no version is specified.
void setBundleVersion(org.osgi.framework.Version bundleVersion)
Bundle-Version
header.
bundleVersion
- bundle's versionjava.lang.String getHeader(java.lang.String name)
name
- the name of the header
void setHeader(java.lang.String name, java.lang.String value)
name
- The name of the headervalue
- The value of the headerjava.util.Dictionary<java.lang.String,java.lang.String> toDictionary()
Dictionary
Dictionary
form.void write(java.io.Writer writer) throws java.io.IOException
writer
- the writer to which the manifest is written
java.io.IOException
- if a problem occurs when writing out the manifest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |