| java.lang.Object | |
| ↳ | com.atlassian.plugin.osgi.util.OsgiHeaderUtil |
Utilities to help create OSGi headers
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Builds the header string from a map
| |||||||||||
Builds the header string from a map
| |||||||||||
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.
| |||||||||||
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.
| |||||||||||
This method is deprecated.
Since 2.7.0, use
findReferredPackageVersions(java.util.List, java.util.Map) instead.
| |||||||||||
This method is deprecated.
Since 2.7.0, use
findReferredPackageNames(java.util.List) instead.
| |||||||||||
Generate package version string such as "com.abc;version=1.2,com.atlassian".
| |||||||||||
Gets the plugin key from the jar manifest
| |||||||||||
Gets the plugin key from the bundle
WARNING: shamelessly copied at com.atlassian.plugin.osgi.bridge.PluginBundleUtils, which can't use
this class due to creating a cyclic build dependency.
| |||||||||||
Parses an OSGi header line into a map structure
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Builds the header string from a map
| values | The header values |
|---|
Builds the header string from a map
| key | The header value |
|---|---|
| attrs | The map of attributes |
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode. Packages starting with "java." are ignored.
| registrations | A list of host component registrations |
|---|
| IOException | If there are any problems scanning bytecode |
|---|
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.
| registrations | A list of host component registrations |
|---|
| IOException | If there are any problems scanning bytecode |
|---|
This method is deprecated.
Since 2.7.0, use findReferredPackageVersions(java.util.List, java.util.Map) instead.
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.
| registrations | A list of host component registrations |
|---|
| IOException | If there are any problems scanning bytecode |
|---|
This method is deprecated.
Since 2.7.0, use findReferredPackageNames(java.util.List) instead.
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.
| registrations | A list of host component registrations |
|---|
| IOException | If there are any problems scanning bytecode |
|---|
Generate package version string such as "com.abc;version=1.2,com.atlassian". The output can be used for import or export.
| packages | map of packagename->version. |
|---|
Gets the plugin key from the jar manifest
| mf | The plugin jar manifest |
|---|
Gets the plugin key from the bundle
WARNING: shamelessly copied at com.atlassian.plugin.osgi.bridge.PluginBundleUtils, which can't use
this class due to creating a cyclic build dependency. Ensure these two implementations are in sync.
This method shouldn't be used directly. Instead consider consuming the PluginRetrievalService.
| bundle | The plugin bundle |
|---|
Parses an OSGi header line into a map structure
| header | The header line |
|---|