Class BundleDependencies
java.lang.Object
com.atlassian.new_platform.BundleDependencies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<String, List<BundleInfo>> 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...).Finds all package imports that are not provided by tested bundlesFinds exported bundles whose export capabilities are not used by the import bundles; It may be an indicator to remove that bundle from dependenciesPresents all the packages included in all the bundles.Discovers all dependencies required by the imports
-
Constructor Details
-
BundleDependencies
- Parameters:
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 dependencies
-
-
Method Details
-
findMissingImports
-
findNotUsedExports
-
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...). Not empty list is a recommendation to look at the bundles - perhaps instead of 2 providers, one bundle should be changed to the importer.- Returns:
- Map of package names exported by more than one bundle followed with the list of bundle names of those bundles
-
getImportDependencies
-
getAllDependencies
-
getAllInternalPackages
Presents all the packages included in all the bundles. It can be used to find "generic" libraries which are embedded in couple bundles at once. In most cases a package should be used only by a single bundle (and exported if other bundles would need it).- Returns:
- Map of all packages within bundles followed by the names of the bundles
-