|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.enterprise.tools.verifier.hk2.PackageAnalyser
public class PackageAnalyser
A class that inspects module definitions of a bundle and processes them to come up with package dependency matrix, split-packages, etc. Does not handle version information correctly while matching exporter to importers, so it assumes a package or a bundle has only one version at any given time in a distribution.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
Set<PackageAnalyser.Bundle> |
bundles
|
Constructor Summary | |
---|---|
PackageAnalyser(Repository moduleRepository)
|
|
PackageAnalyser(Repository repo,
Logger logger)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Set<PackageAnalyser.Bundle> bundles
Constructor Detail |
---|
public PackageAnalyser(Repository moduleRepository)
public PackageAnalyser(Repository repo, Logger logger)
Method Detail |
---|
public void analyse(PackageAnalyser.Bundle bundle) throws IOException
bundle
- to be analysed
IOException
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)
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |