public class BundleDependencies extends Object
| Constructor and Description |
|---|
BundleDependencies(List<com.atlassian.new_platform.BundleInfo> exports,
List<com.atlassian.new_platform.BundleInfo> imports) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<com.atlassian.new_platform.BundleInfo>> |
findDuplicatedExports()
Finds all the exported packages provided by more than single bundle;
Atlassian ecosystem implicitly assumes there is only single source of dependencies
(so nobody bothered with proper dependency versioning in OSGi...).
|
Map<String,List<String>> |
findMissingImports()
Finds all package imports that are not provided by tested bundles
|
List<String> |
findNotUsedExports()
Finds exported bundles whose export capabilities are not used by the import bundles;
It may be an indicator to remove that bundle from dependencies
|
Map<String,Set<String>> |
getAllDependencies() |
Map<String,List<String>> |
getAllInternalPackages()
Presents all the packages included in all the bundles.
|
Map<String,Set<String>> |
getImportDependencies()
Discovers all dependencies required by the imports
|
public BundleDependencies(List<com.atlassian.new_platform.BundleInfo> exports, List<com.atlassian.new_platform.BundleInfo> imports)
exports - list of bundles exporting certain packages, their imports won't be examinedimports - list of bundles whose imports have to be met, their own exports are also used to examine dependenciespublic Map<String,List<String>> findMissingImports()
public List<String> findNotUsedExports()
public Map<String,List<com.atlassian.new_platform.BundleInfo>> findDuplicatedExports()
public Map<String,Set<String>> getImportDependencies()
public Map<String,List<String>> getAllInternalPackages()
Copyright © 2025 Atlassian. All rights reserved.