com.atlassian.plugin.osgi.util
Class OsgiHeaderUtil

java.lang.Object
  extended by com.atlassian.plugin.osgi.util.OsgiHeaderUtil

public class OsgiHeaderUtil
extends java.lang.Object

Utilities to help create OSGi headers


Constructor Summary
OsgiHeaderUtil()
           
 
Method Summary
static java.lang.String determineExports(java.util.List<HostComponentRegistration> regs, PackageScannerConfiguration packageScannerConfig)
          Determines framework exports taking into account host components and package scanner configuration.
static java.lang.String findReferredPackages(java.util.List<HostComponentRegistration> registrations)
          Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiHeaderUtil

public OsgiHeaderUtil()
Method Detail

findReferredPackages

public static java.lang.String findReferredPackages(java.util.List<HostComponentRegistration> registrations)
                                             throws java.io.IOException
Finds all referred packages for host component registrations by scanning their declared interfaces' bytecode.

Parameters:
registrations - A list of host component registrations
Returns:
The referred packages in a format compatible with an OSGi header
Throws:
java.io.IOException - If there are any problems scanning bytecode

determineExports

public static java.lang.String determineExports(java.util.List<HostComponentRegistration> regs,
                                                PackageScannerConfiguration packageScannerConfig)
Determines framework exports taking into account host components and package scanner configuration.

Parameters:
regs - The list of host component registrations
packageScannerConfig - The configuration for the package scanning
Returns:
A list of exports, in a format compatible with OSGi headers


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.