public class DelegatingBuildStrategyContext extends Object implements BuildStrategyContext
BuildStrategyContext
to make it easier to change parts of the behavior.Constructor and Description |
---|
DelegatingBuildStrategyContext(BuildStrategyContext delegateContext) |
Modifier and Type | Method and Description |
---|---|
Scope |
buildRuleScope() |
BuildResult |
createBuildResult(BuildRuleSuccessType successType,
Optional<String> strategyResult) |
BuildResult |
createCancelledResult(Throwable throwable) |
BuildableContext |
getBuildableContext() |
BuildContext |
getBuildRuleBuildContext() |
ExecutionContext |
getExecutionContext() |
com.google.common.util.concurrent.ListeningExecutorService |
getExecutorService() |
com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> |
runWithDefaultBehavior() |
public DelegatingBuildStrategyContext(BuildStrategyContext delegateContext)
public com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> runWithDefaultBehavior()
runWithDefaultBehavior
in interface BuildStrategyContext
public com.google.common.util.concurrent.ListeningExecutorService getExecutorService()
getExecutorService
in interface BuildStrategyContext
public BuildResult createBuildResult(BuildRuleSuccessType successType, Optional<String> strategyResult)
createBuildResult
in interface BuildStrategyContext
public BuildResult createCancelledResult(Throwable throwable)
createCancelledResult
in interface BuildStrategyContext
public ExecutionContext getExecutionContext()
getExecutionContext
in interface BuildStrategyContext
public Scope buildRuleScope()
buildRuleScope
in interface BuildStrategyContext
public BuildContext getBuildRuleBuildContext()
getBuildRuleBuildContext
in interface BuildStrategyContext
public BuildableContext getBuildableContext()
getBuildableContext
in interface BuildStrategyContext