public class PackageAnalyser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PackageAnalyser.Bundle
A dats structure to capture bundle details needed for our
processing.
|
static class |
PackageAnalyser.PackageCapability
Holds information about an exported package.
|
static class |
PackageAnalyser.SplitPackage
Holds information about a split-package.
|
static class |
PackageAnalyser.Wire
A wire represents a connection between an exporter bundle to an importer
bundle for a particular package.
|
Modifier and Type | Field and Description |
---|---|
Set<PackageAnalyser.Bundle> |
bundles |
Constructor and Description |
---|
PackageAnalyser(Repository moduleRepository) |
PackageAnalyser(Repository repo,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
analyse(PackageAnalyser.Bundle bundle)
Analyse the dependency of a bundle and updates it in the given bundle object.
|
Collection<PackageAnalyser.Wire> |
analyseWirings()
Analyse package wiring between bundles.
|
Set<PackageAnalyser.Bundle> |
findAllBundles() |
Collection<String> |
findAllExportedPackageNames() |
Collection<PackageAnalyser.PackageCapability> |
findAllExportedPackages() |
Collection<PackageAnalyser.SplitPackage> |
findDuplicatePackages()
Inspects bundles and reports duplicate packages.
|
Collection<PackageAnalyser.PackageCapability> |
findUnusedExports() |
Collection<PackageAnalyser.PackageCapability> |
findUnusedExports(PackageAnalyser.Bundle exporter)
Find unused exported packages for a given bundle
|
void |
generateBundleReport(PrintStream out) |
void |
generateWiringReport(Collection<PackageAnalyser.PackageCapability> exportedPkgs,
Collection<PackageAnalyser.Wire> wires,
PrintStream out) |
static void |
main(String[] args) |
public Set<PackageAnalyser.Bundle> bundles
public PackageAnalyser(Repository moduleRepository)
public PackageAnalyser(Repository repo, Logger logger)
public void analyse(PackageAnalyser.Bundle bundle) throws IOException
bundle
- to be analysedIOException
public Collection<PackageAnalyser.Wire> analyseWirings() throws IOException
IOException
public Collection<PackageAnalyser.SplitPackage> findDuplicatePackages()
this#analyseWirings()
The colection is already sorted.public Collection<PackageAnalyser.PackageCapability> findAllExportedPackages()
public Collection<String> findAllExportedPackageNames()
public Set<PackageAnalyser.Bundle> findAllBundles()
public Collection<PackageAnalyser.PackageCapability> findUnusedExports()
public Collection<PackageAnalyser.PackageCapability> findUnusedExports(PackageAnalyser.Bundle exporter)
exporter
- public void generateWiringReport(Collection<PackageAnalyser.PackageCapability> exportedPkgs, Collection<PackageAnalyser.Wire> wires, PrintStream out)
public void generateBundleReport(PrintStream out)
Copyright © 2014 Oracle Corporation. All rights reserved.