Interface FlowScope
@Incubating
@ServiceScope(org.gradle.internal.service.scopes.Scope.Build.class)
public interface FlowScope
Augments the cached work graph with
dataflow actions, anonymous, parameterized and
isolated pieces of work that are triggered solely based on the availability of their input parameters.
An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with javax.inject.Inject.
- Since:
- 8.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFlowScope.Registration<P extends FlowParameters>Represents a registereddataflow action. -
Method Summary
Modifier and TypeMethodDescription<P extends FlowParameters>
FlowScope.Registration<P> always(Class<? extends FlowAction<P>> action, Action<? super FlowActionSpec<P>> configure) Registers adataflow actionthat's always part of the dataflow graph.
-
Method Details
-
always
<P extends FlowParameters> FlowScope.Registration<P> always(Class<? extends FlowAction<P>> action, Action<? super FlowActionSpec<P>> configure) Registers adataflow actionthat's always part of the dataflow graph.- Type Parameters:
P- the parameters defined by the givendataflow actiontype.- Parameters:
action- thedataflow actiontype.configure- configuration for the givendataflow actionparameters.- Returns:
- a
FlowScope.Registrationobject representing the registered action. - Since:
- 8.1
-