Class DependencyCheckerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.DependencyCheckerImpl
-
- All Implemented Interfaces:
DependencyChecker
public class DependencyCheckerImpl extends Object implements DependencyChecker
-
-
Field Summary
Fields Modifier and Type Field Description static String
TC_FEATURE_TOGGLE
-
Constructor Summary
Constructors Constructor Description DependencyCheckerImpl(ProjectManager projectManager, DependencyExemptionManager dependencyExemptionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDependencyAvailable(SBuildType source, BuildPromotion destination, DependencyType dependencyType)
Returns true when the dependency can be resolved, according to project hierarchy and exemptions.
-
-
-
Field Detail
-
TC_FEATURE_TOGGLE
@NotNull public static final String TC_FEATURE_TOGGLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DependencyCheckerImpl
public DependencyCheckerImpl(@NotNull ProjectManager projectManager, @NotNull DependencyExemptionManager dependencyExemptionManager)
-
-
Method Detail
-
isDependencyAvailable
public boolean isDependencyAvailable(@Nullable SBuildType source, @NotNull BuildPromotion destination, @NotNull DependencyType dependencyType)
Description copied from interface:DependencyChecker
Returns true when the dependency can be resolved, according to project hierarchy and exemptions. The default behavior is following (S - project where source is located, D - project where destination is located):- If S is a subproject of D, or D is a subproject of S, returns true
- If S and D are equal, returns true
- If there exists an exemption X -> Y, such that X is source or one of its parent projects and Y is destination or one of its parent projects, returns true
- In other cases, the false is returned
- Specified by:
isDependencyAvailable
in interfaceDependencyChecker
- Parameters:
source
- source buildtypedestination
- destination buildtype- Returns:
- true if dependency can be resolved, false otherwise
-
-