Package com.facebook.buck.rules.keys
Class DefaultDependencyFileRuleKeyFactory
- java.lang.Object
-
- com.facebook.buck.rules.keys.DefaultDependencyFileRuleKeyFactory
-
- All Implemented Interfaces:
DependencyFileRuleKeyFactory
public final class DefaultDependencyFileRuleKeyFactory extends Object implements DependencyFileRuleKeyFactory
A factory for generating dependency-fileRuleKey
s.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.facebook.buck.rules.keys.DependencyFileRuleKeyFactory
DependencyFileRuleKeyFactory.RuleKeyAndInputs
-
-
Constructor Summary
Constructors Constructor Description DefaultDependencyFileRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder)
DefaultDependencyFileRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyFileRuleKeyFactory.RuleKeyAndInputs
build(SupportsDependencyFileRuleKey rule, com.google.common.collect.ImmutableList<DependencyFileEntry> depFileEntries)
DependencyFileRuleKeyFactory.RuleKeyAndInputs
buildManifestKey(SupportsDependencyFileRuleKey rule)
-
-
-
Constructor Detail
-
DefaultDependencyFileRuleKeyFactory
public DefaultDependencyFileRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder, Optional<ThriftRuleKeyLogger> ruleKeyLogger)
-
DefaultDependencyFileRuleKeyFactory
public DefaultDependencyFileRuleKeyFactory(RuleKeyFieldLoader ruleKeyFieldLoader, FileHashLoader hashLoader, SourcePathRuleFinder ruleFinder)
-
-
Method Detail
-
build
public DependencyFileRuleKeyFactory.RuleKeyAndInputs build(SupportsDependencyFileRuleKey rule, com.google.common.collect.ImmutableList<DependencyFileEntry> depFileEntries) throws IOException
- Specified by:
build
in interfaceDependencyFileRuleKeyFactory
- Returns:
- a
RuleKey
for the givenBuildRule
using the given list of explicitinputs
and anImmutableSet
of the members of possibleDepFileSourcePaths that were actually used in constructing the key. - Throws:
IOException
-
buildManifestKey
public DependencyFileRuleKeyFactory.RuleKeyAndInputs buildManifestKey(SupportsDependencyFileRuleKey rule) throws IOException
- Specified by:
buildManifestKey
in interfaceDependencyFileRuleKeyFactory
- Returns:
- the
RuleKey
used to index the manifest database and the list of inputs that should appear in the manifest (i.e., those that appeared in the dependency file, because all other inputs would be accounted for in the manifest key itself). - Throws:
IOException
-
-