public interface BuildRuleStrategy extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BuildRuleStrategy.StrategyBuildResult
A simple interface for build results exposing an explicit cancellation.
|
| Modifier and Type | Method and 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() |
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionBuildRuleStrategy.StrategyBuildResult build(BuildRule rule, BuildStrategyContext strategyContext)
boolean canBuild(BuildRule instance)