Interface BuildRuleStrategy
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
HybridLocalStrategy
,LocalFallbackStrategy
,RemoteExecutionStrategy
public interface BuildRuleStrategy extends Closeable
Interface for injecting customized behavior into the CachingBuildEngine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BuildRuleStrategy.StrategyBuildResult
A simple interface for build results exposing an explicit cancellation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BuildRuleStrategy.StrategyBuildResult
build(BuildRule rule, BuildStrategyContext strategyContext)
Builds the rule.boolean
canBuild(BuildRule instance)
A rule will be built by the custom strategy only if canBuild() returns true.void
close()
-
-
-
Method Detail
-
close
void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
build
BuildRuleStrategy.StrategyBuildResult build(BuildRule rule, BuildStrategyContext strategyContext)
Builds the rule.
-
canBuild
boolean canBuild(BuildRule instance)
A rule will be built by the custom strategy only if canBuild() returns true.
-
-