Package org.apache.ivy.core.resolve
Class ResolveData
java.lang.Object
org.apache.ivy.core.resolve.ResolveData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResolvedModuleRevision
private VisitNode
private ResolveEngine
private ResolveOptions
private ConfigurationResolveReport
private 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) void
Returns the lastResolvedModuleRevision
which has been currently resolved.Returns the VisitNode currently visited, ornull
if there is no node currently visited in this context.getDate()
getNode
(ModuleRevisionId mrid) getNodes()
getVisitData
(ModuleRevisionId mrid) boolean
isBlacklisted
(String rootModuleConf, ModuleRevisionId mrid) private static boolean
private static <K,
V> boolean Checks whether one map is a sub-map of the other.boolean
boolean
void
register
(ModuleRevisionId mrid, VisitNode node) void
(package private) void
replaceNode
(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 rootModuleConfvoid
Sets the lastResolvedModuleRevision
which has been currently resolved.(package private) void
setCurrentVisitNode
(VisitNode currentVisitNode) Sets the currently visited node.void
setReport
(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, ornull
if 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 lastResolvedModuleRevision
which 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 lastResolvedModuleRevision
which has been currently resolved.
-
getCurrentResolvedModuleRevision
Returns the lastResolvedModuleRevision
which has been currently resolved.It can be
null
.- Returns:
- the last
ResolvedModuleRevision
which has been currently resolved.
-