Package org.apache.ivy.core.resolve
Class IvyNodeUsage
java.lang.Object
org.apache.ivy.core.resolve.IvyNodeUsage
Class collecting usage data for an IvyNode.
Usage data contains the configurations required by callers for each root module configuration, the configurations required by caller node and caller configuration, dependency artifacts descriptors declared by callers, include rules declared by callers, and blacklisted data by root module conf.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,
IvyNodeBlacklist> private Map<String,
Set<IvyNodeUsage.Depender>> private IvyNode
private Map<IvyNodeUsage.NodeConf,
Set<String>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAndGetConfigurations
(String rootModuleConf) private <K,
V> void addObjectsForConf
(K rootModuleConf, V objectToAdd, Map<K, Set<V>> map) void
addUsage
(String rootModuleConf, DependencyDescriptor dd, String parentConf) protected void
blacklist
(IvyNodeBlacklist bdata) protected IvyNodeBlacklist
getBlacklistData
(String rootModuleConf) Returns the blacklist data of this node in the given root module conf, ornull
if this node is not blacklisted in this root module conf.getConfigurations
(String rootModuleConf) Returns the configurations of the dependency required in a given root module configuration.protected Set<DependencyArtifactDescriptor>
getDependencyArtifactsSet
(String rootModuleConf) protected Set<IncludeRule>
getDependencyIncludesSet
(String rootModuleConf) protected IvyNode
getNode()
protected Collection<String>
getRequiredConfigurations
(IvyNode in, String inConf) boolean
hasTransitiveDepender
(String rootModuleConf) Indicates if at least one depender has a transitive dependency descriptor for the given root module conf.protected boolean
isBlacklisted
(String rootModuleConf) Indicates if this node has been blacklisted in the given root module conf.protected void
removeRootModuleConf
(String rootModuleConf) protected void
setRequiredConfs
(IvyNode parent, String parentConf, Collection<String> confs) void
updateDataFrom
(Collection<IvyNodeUsage> usages, String rootModuleConf) private void
updateDataFrom
(IvyNodeUsage usage, String rootModuleConf) private <K,
V> void updateMapOfSet
(Map<K, Set<V>> from, Map<K, Set<V>> to) private <K,
V> void updateMapOfSetForKey
(Map<K, Set<V>> from, Map<K, Set<V>> to, K key)
-
Field Details
-
node
-
rootModuleConfs
-
requiredConfs
-
dependers
-
blacklisted
-
-
Constructor Details
-
IvyNodeUsage
-
-
Method Details
-
getRequiredConfigurations
-
setRequiredConfs
-
getConfigurations
Returns the configurations of the dependency required in a given root module configuration.- Parameters:
rootModuleConf
- ditto- Returns:
- Set<String>
-
addAndGetConfigurations
-
getRootModuleConfigurations
-
updateDataFrom
-
updateDataFrom
-
updateMapOfSet
-
updateMapOfSetForKey
-
addObjectsForConf
-
addUsage
-
getDependencyArtifactsSet
-
getDependencyIncludesSet
-
removeRootModuleConf
-
blacklist
-
isBlacklisted
Indicates if this node has been blacklisted in the given root module conf.A blacklisted node should be considered as if it doesn't even exist on the repository.
- Parameters:
rootModuleConf
- the root module conf for which we'd like to know if the node is blacklisted- Returns:
- true if this node is blacklisted int he given root module conf, false otherwise
- See Also:
-
getBlacklistData
Returns the blacklist data of this node in the given root module conf, ornull
if this node is not blacklisted in this root module conf.- Parameters:
rootModuleConf
- the root module configuration to consider- Returns:
- the blacklist data if any
-
getNode
-
hasTransitiveDepender
Indicates if at least one depender has a transitive dependency descriptor for the given root module conf.- Parameters:
rootModuleConf
- the root module conf to consider- Returns:
true
if at least one depender has a transitive dependency descriptor for the given root module conf,false
otherwise.
-