public class RuleBasedConstraintResolver extends Object implements ConstraintResolver
ConstraintResolver
that uses configuration rules obtained from ConfigurationRuleResolver
to create ConstraintSetting
and ConstraintValue
instances.
All instances are cached.
Constructor and Description |
---|
RuleBasedConstraintResolver(ConfigurationRuleResolver configurationRuleResolver) |
Modifier and Type | Method and Description |
---|---|
ConstraintSetting |
getConstraintSetting(BuildTarget buildTarget,
DependencyStack dependencyStack) |
ConstraintValue |
getConstraintValue(BuildTarget buildTarget,
DependencyStack dependencyStack) |
public RuleBasedConstraintResolver(ConfigurationRuleResolver configurationRuleResolver)
public ConstraintSetting getConstraintSetting(BuildTarget buildTarget, DependencyStack dependencyStack)
getConstraintSetting
in interface ConstraintResolver
ConstraintSetting
identified by a given BuildTarget
.public ConstraintValue getConstraintValue(BuildTarget buildTarget, DependencyStack dependencyStack)
getConstraintValue
in interface ConstraintResolver
ConstraintValue
identified by a given BuildTarget
.