Class ConflictResolver.ScopeContext

  • Enclosing class:
    ConflictResolver

    public static final class ConflictResolver.ScopeContext
    extends java.lang.Object
    A context used to hold information that is relevant for deriving the scope of a child dependency.
    See Also:
    ConflictResolver.ScopeDeriver
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String childScope  
      (package private) java.lang.String derivedScope  
      (package private) java.lang.String parentScope  
    • Constructor Summary

      Constructors 
      Constructor Description
      ScopeContext​(java.lang.String parentScope, java.lang.String childScope)
      Creates a new scope context with the specified properties.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getChildScope()
      Gets the original scope of the child dependency.
      java.lang.String getDerivedScope()
      Gets the derived scope of the child dependency.
      java.lang.String getParentScope()
      Gets the scope of the parent dependency.
      void setDerivedScope​(java.lang.String derivedScope)
      Sets the derived scope of the child dependency.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parentScope

        java.lang.String parentScope
      • childScope

        java.lang.String childScope
      • derivedScope

        java.lang.String derivedScope
    • Constructor Detail

      • ScopeContext

        public ScopeContext​(java.lang.String parentScope,
                            java.lang.String childScope)
        Creates a new scope context with the specified properties.
        Parameters:
        parentScope - The scope of the parent dependency, may be null.
        childScope - The scope of the child dependency, may be null.
    • Method Detail

      • getParentScope

        public java.lang.String getParentScope()
        Gets the scope of the parent dependency. This is usually the scope that was derived by earlier invocations of the scope deriver.
        Returns:
        The scope of the parent dependency, never null.
      • getChildScope

        public java.lang.String getChildScope()
        Gets the original scope of the child dependency. This is the scope that was declared in the artifact descriptor of the parent dependency.
        Returns:
        The original scope of the child dependency, never null.
      • getDerivedScope

        public java.lang.String getDerivedScope()
        Gets the derived scope of the child dependency. This is initially equal to getChildScope() until the scope deriver makes changes.
        Returns:
        The derived scope of the child dependency, never null.
      • setDerivedScope

        public void setDerivedScope​(java.lang.String derivedScope)
        Sets the derived scope of the child dependency.
        Parameters:
        derivedScope - The derived scope of the dependency, may be null.