Class IvyNodeUsage


  • public class IvyNodeUsage
    extends java.lang.Object
    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.

    • Constructor Detail

      • IvyNodeUsage

        public IvyNodeUsage​(IvyNode node)
    • Method Detail

      • getRequiredConfigurations

        protected java.util.Collection<java.lang.String> getRequiredConfigurations​(IvyNode in,
                                                                                   java.lang.String inConf)
      • setRequiredConfs

        protected void setRequiredConfs​(IvyNode parent,
                                        java.lang.String parentConf,
                                        java.util.Collection<java.lang.String> confs)
      • getConfigurations

        protected java.util.Set<java.lang.String> getConfigurations​(java.lang.String rootModuleConf)
        Returns the configurations of the dependency required in a given root module configuration.
        Parameters:
        rootModuleConf - ditto
        Returns:
        Set<String>
      • addAndGetConfigurations

        protected java.util.Set<java.lang.String> addAndGetConfigurations​(java.lang.String rootModuleConf)
      • getRootModuleConfigurations

        protected java.util.Set<java.lang.String> getRootModuleConfigurations()
      • updateDataFrom

        public void updateDataFrom​(java.util.Collection<IvyNodeUsage> usages,
                                   java.lang.String rootModuleConf)
      • addUsage

        public void addUsage​(java.lang.String rootModuleConf,
                             DependencyDescriptor dd,
                             java.lang.String parentConf)
      • getDependencyArtifactsSet

        protected java.util.Set<DependencyArtifactDescriptor> getDependencyArtifactsSet​(java.lang.String rootModuleConf)
      • getDependencyIncludesSet

        protected java.util.Set<IncludeRule> getDependencyIncludesSet​(java.lang.String rootModuleConf)
      • removeRootModuleConf

        protected void removeRootModuleConf​(java.lang.String rootModuleConf)
      • isBlacklisted

        protected boolean isBlacklisted​(java.lang.String rootModuleConf)
        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:
        blacklist(IvyNodeBlacklist)
      • getBlacklistData

        protected IvyNodeBlacklist getBlacklistData​(java.lang.String rootModuleConf)
        Returns the blacklist data of this node in the given root module conf, or null 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

        protected IvyNode getNode()
      • hasTransitiveDepender

        public boolean hasTransitiveDepender​(java.lang.String rootModuleConf)
        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.