public class SameThreadConfigurationRuleResolver extends Object implements ConfigurationRuleResolver
UnconfiguredBuildTarget and the ConfigurationRule it
represents.
This resolver performs all computations on the same thread ConfigurationRuleResolver.getRule(com.facebook.buck.core.model.BuildTarget, java.lang.Class<R>, com.facebook.buck.core.exceptions.DependencyStack) was called from.
| Constructor and Description |
|---|
SameThreadConfigurationRuleResolver(java.util.function.BiFunction<BuildTarget,DependencyStack,TargetNode<?>> targetNodeSupplier) |
| Modifier and Type | Method and Description |
|---|---|
<R extends ConfigurationRule> |
getRule(BuildTarget buildTarget,
Class<R> ruleClass,
DependencyStack dependencyStack)
Returns the
ConfigurationRule associated with the given BuildTarget. |
public SameThreadConfigurationRuleResolver(java.util.function.BiFunction<BuildTarget,DependencyStack,TargetNode<?>> targetNodeSupplier)
public <R extends ConfigurationRule> R getRule(BuildTarget buildTarget, Class<R> ruleClass, DependencyStack dependencyStack)
ConfigurationRuleResolverConfigurationRule associated with the given BuildTarget.getRule in interface ConfigurationRuleResolver