Class ConflictResolver.ScopeContext
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.ConflictResolver.ScopeContext
-
- Enclosing class:
- ConflictResolver
public abstract static 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
-
-
Constructor Summary
Constructors Constructor Description ScopeContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.StringgetChildScope()Gets the original scope of the child dependency.abstract java.lang.StringgetDerivedScope()Gets the derived scope of the child dependency.abstract java.lang.StringgetParentScope()Gets the scope of the parent dependency.abstract voidsetDerivedScope(java.lang.String derivedScope)Sets the derived scope of the child dependency.
-
-
-
Constructor Detail
-
ScopeContext
public ScopeContext()
-
-
Method Detail
-
getParentScope
public abstract 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 abstract 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 abstract java.lang.String getDerivedScope()
Gets the derived scope of the child dependency. This is initially equal togetChildScope()until the scope deriver makes changes.- Returns:
- the derived scope of the child dependency, never
null
-
setDerivedScope
public abstract void setDerivedScope(java.lang.String derivedScope)
Sets the derived scope of the child dependency.- Parameters:
derivedScope- the derived scope of the dependency, may benull
-
-