public class BuildRuleResolverCacheByTargetConfiguration<T> extends Object
CxxToolProvider
and similar classes that need to cache build
rules for a given build rule resolver and target configuration.
This is basically two level cache to allow to use build rule resolver as a key in a cache with weak keys and target configuration as the key at second level (without weak keys).
Constructor and Description |
---|
BuildRuleResolverCacheByTargetConfiguration(BuildRuleResolver buildRuleResolver,
ToolProvider toolProvider,
java.util.function.Function<Tool,T> delegateBuilder) |
public BuildRuleResolverCacheByTargetConfiguration(BuildRuleResolver buildRuleResolver, ToolProvider toolProvider, java.util.function.Function<Tool,T> delegateBuilder)
public T get(TargetConfiguration targetConfiguration)