|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.util.OsgiHeaderUtil
public class OsgiHeaderUtil
Utilities to help create OSGi headers
| Constructor Summary | |
|---|---|
OsgiHeaderUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
buildHeader(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> values)
Builds the header string from a map |
static java.lang.String |
buildHeader(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> attrs)
Builds the header string from a map |
static java.lang.String |
findReferredPackages(java.util.List<HostComponentRegistration> registrations)
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode. |
static java.lang.String |
findReferredPackages(java.util.List<HostComponentRegistration> registrations,
java.util.Map<java.lang.String,java.lang.String> packageVersions)
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode. |
static java.lang.String |
getPluginKey(org.osgi.framework.Bundle bundle)
Gets the plugin key from the bundle WARNING: shamelessly copied at PluginBundleUtils, which can't use
this class due to creating a cyclic build dependency. |
static java.lang.String |
getPluginKey(java.util.jar.Manifest mf)
Gets the plugin key from the jar manifest |
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
parseHeader(java.lang.String header)
Parses an OSGi header line into a map structure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiHeaderUtil()
| Method Detail |
|---|
public static java.lang.String findReferredPackages(java.util.List<HostComponentRegistration> registrations)
throws java.io.IOException
registrations - A list of host component registrations
java.io.IOException - If there are any problems scanning bytecode
public static java.lang.String findReferredPackages(java.util.List<HostComponentRegistration> registrations,
java.util.Map<java.lang.String,java.lang.String> packageVersions)
throws java.io.IOException
registrations - A list of host component registrations
java.io.IOException - If there are any problems scanning bytecodepublic static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> parseHeader(java.lang.String header)
header - The header line
public static java.lang.String buildHeader(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> values)
values - The header values
public static java.lang.String buildHeader(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> attrs)
key - The header valueattrs - The map of attributes
public static java.lang.String getPluginKey(org.osgi.framework.Bundle bundle)
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
public static java.lang.String getPluginKey(java.util.jar.Manifest mf)
mf - The plugin jar manifest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||