Package org.apache.ivy.core.resolve
Class ResolveData
java.lang.Object
org.apache.ivy.core.resolve.ResolveData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResolvedModuleRevisionprivate VisitNodeprivate ResolveEngineprivate ResolveOptionsprivate ConfigurationResolveReportprivate Map<ModuleRevisionId,VisitData> -
Constructor Summary
ConstructorsConstructorDescriptionResolveData(ResolveData data, boolean validate) ResolveData(ResolveEngine engine, ResolveOptions options) ResolveData(ResolveEngine engine, ResolveOptions options, ConfigurationResolveReport report) ResolveData(ResolveEngine engine, ResolveOptions options, ConfigurationResolveReport report, Map<ModuleRevisionId, VisitData> visitData) -
Method Summary
Modifier and TypeMethodDescription(package private) voidReturns the lastResolvedModuleRevisionwhich has been currently resolved.Returns the VisitNode currently visited, ornullif there is no node currently visited in this context.getDate()getNode(ModuleRevisionId mrid) getNodes()getVisitData(ModuleRevisionId mrid) booleanisBlacklisted(String rootModuleConf, ModuleRevisionId mrid) private static booleanprivate static <K,V> boolean Checks whether one map is a sub-map of the other.booleanbooleanvoidregister(ModuleRevisionId mrid, VisitNode node) void(package private) voidreplaceNode(ModuleRevisionId mrid, IvyNode node, String rootModuleConf) Updates the visit data currently associated with the given mrid with the given node and the visit nodes of the old visitData for the given rootModuleConfvoidSets the lastResolvedModuleRevisionwhich has been currently resolved.(package private) voidsetCurrentVisitNode(VisitNode currentVisitNode) Sets the currently visited node.voidsetReport(ConfigurationResolveReport report)
-
Field Details
-
engine
-
visitData
-
report
-
options
-
currentVisitNode
-
currentResolvedModuleRevision
-
-
Constructor Details
-
ResolveData
-
ResolveData
-
ResolveData
-
ResolveData
public ResolveData(ResolveEngine engine, ResolveOptions options, ConfigurationResolveReport report, Map<ModuleRevisionId, VisitData> visitData)
-
-
Method Details
-
getReport
-
getNode
-
getNodes
-
getNodeIds
-
getVisitData
-
isSubMap
Checks whether one map is a sub-map of the other. -
isEqual
-
getCurrentVisitNode
Returns the VisitNode currently visited, ornullif there is no node currently visited in this context.- Returns:
- the VisitNode currently visited
-
setCurrentVisitNode
Sets the currently visited node. WARNING: This should only be called by Ivy core ResolveEngine!- Parameters:
currentVisitNode- VisitNode
-
register
-
register
-
replaceNode
Updates the visit data currently associated with the given mrid with the given node and the visit nodes of the old visitData for the given rootModuleConf- Parameters:
mrid- the module revision id for which the update should be donenode- the IvyNode to associate with the visit data to updaterootModuleConf- the root module configuration in which the update is made
-
setReport
-
getDate
-
isValidate
public boolean isValidate() -
isTransitive
public boolean isTransitive() -
getOptions
-
getSettings
-
getEventManager
-
getEngine
-
blacklist
-
isBlacklisted
-
mediate
-
setCurrentResolvedModuleRevision
Sets the lastResolvedModuleRevisionwhich has been currently resolved.This can be used especially in dependency resolvers, to know if another dependency resolver has already resolved the requested dependency, to take a decision if the resolver should try to resolve it by itself or not. Indeed, the dependency resolver is responsible for taking this decision, even when included in a chain. The chain responsibility is only to set this current resolved module revision to enable the resolver to take the decision.
- Parameters:
mr- the lastResolvedModuleRevisionwhich has been currently resolved.
-
getCurrentResolvedModuleRevision
Returns the lastResolvedModuleRevisionwhich has been currently resolved.It can be
null.- Returns:
- the last
ResolvedModuleRevisionwhich has been currently resolved.
-