com.atlassian.plugin.osgi.factory.transform.model
Class SystemExports

java.lang.Object
  extended by com.atlassian.plugin.osgi.factory.transform.model.SystemExports

public class SystemExports
extends Object

Encapsulates the package exports from the system bundle

Since:
2.2.0

Field Summary
static SystemExports NONE
           
 
Constructor Summary
SystemExports(String exportsLine)
          Constructs an instance by parsing the exports line from the manifest
 
Method Summary
 String getFullExport(String pkg)
          Constructs a package export, taking into account any attributes on the system export, including the version.
 boolean isExported(String pkg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final SystemExports NONE
Constructor Detail

SystemExports

public SystemExports(String exportsLine)
Constructs an instance by parsing the exports line from the manifest

Parameters:
exportsLine - The Export-Package header value
Method Detail

getFullExport

public String getFullExport(String pkg)
Constructs a package export, taking into account any attributes on the system export, including the version. The version is handled special, in that is added as an exact match, i.e. [1.0,1.0].

Parameters:
pkg - The java package
Returns:
The full export line to use for a host component import

isExported

public boolean isExported(String pkg)
Parameters:
pkg - The package to check
Returns:
True if the package is being exported, false otherwise


Copyright © 2012 Atlassian. All Rights Reserved.