com.sun.enterprise.tools.verifier.hk2
Class ModuleDependencyAnalyser
java.lang.Object
com.sun.enterprise.tools.verifier.hk2.ModuleDependencyAnalyser
public class ModuleDependencyAnalyser
- extends java.lang.Object
- Author:
- Sanjeeb.Sahoo@Sun.COM
|
Constructor Summary |
ModuleDependencyAnalyser(com.sun.enterprise.module.ModuleDefinition moduleDef,
com.sun.enterprise.module.Repository moduleRepository)
Create a new analyser. |
|
Method Summary |
boolean |
analyse()
Analyse dependency of a module. |
void |
excludeClasses(java.util.Collection<java.lang.String> classes)
|
void |
excludePackages(java.util.Collection<java.lang.String> packages)
|
void |
excludePatterns(java.util.Collection<java.lang.String> patterns)
|
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getResult()
|
java.lang.String |
getResultAsString()
|
static void |
main(java.lang.String[] args)
|
void |
printResult(java.io.PrintStream out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModuleDependencyAnalyser
public ModuleDependencyAnalyser(com.sun.enterprise.module.ModuleDefinition moduleDef,
com.sun.enterprise.module.Repository moduleRepository)
throws java.io.IOException
- Create a new analyser.
- Parameters:
moduleDef - module whose dependency needs to be analysedmoduleRepository - repository used to satisfy dependencies
- Throws:
java.io.IOException
analyse
public boolean analyse()
throws java.io.IOException
- Analyse dependency of a module. It uses the repository to look up
modules that this module depends on.
- Returns:
- true if all the dependencies are OK, false if something is missing
- Throws:
java.io.IOException - if there is any failure in reading module information
excludePatterns
public void excludePatterns(java.util.Collection<java.lang.String> patterns)
excludePackages
public void excludePackages(java.util.Collection<java.lang.String> packages)
excludeClasses
public void excludeClasses(java.util.Collection<java.lang.String> classes)
getResult
public java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getResult()
- Returns:
- a map of referencing class name to collection of unresolved classes
- See Also:
for
description of the return value.
getResultAsString
public java.lang.String getResultAsString()
printResult
public void printResult(java.io.PrintStream out)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2011 Oracle Corporation. All Rights Reserved.