Interface AnalysisPlugin
- All Superinterfaces:
OrderedPlugin
A plugin that is called during the analysis phase to collect information
about analysis decisions. This allows implementations to track why certain
decisions were made, such as why a particular version range was chosen for an
import.
This plugin is called during the Analyzer.analyze() phase, before the
manifest is generated. It provides callbacks for various analysis events,
allowing implementations to build a detailed log of analysis decisions.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidreportAnalysis(Analyzer analyzer, String category, String details) Called when the analyzer makes other analysis decisions that may be of interest.voidreportImportVersion(Analyzer analyzer, Descriptors.PackageRef packageRef, String version, String reason) Called when the analyzer determines a version range for an import package.Methods inherited from interface OrderedPlugin
ordering
-
Method Details
-
reportImportVersion
void reportImportVersion(Analyzer analyzer, Descriptors.PackageRef packageRef, String version, String reason) throws Exception Called when the analyzer determines a version range for an import package. This provides insight into why a particular version range was chosen.- Parameters:
analyzer- the analyzer performing the analysispackageRef- the package being analyzedversion- the version or version range determinedreason- a human-readable explanation for why this version was chosen (e.g., "provider type", "consumer type", "explicit version policy")- Throws:
Exception- if an error occurs during processing
-
reportAnalysis
Called when the analyzer makes other analysis decisions that may be of interest.- Parameters:
analyzer- the analyzer performing the analysiscategory- the category of the analysis decision (e.g., "uses", "export", "capability")details- detailed information about the decision- Throws:
Exception- if an error occurs during processing
-