- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for FlowParameters (0.19 sec)
-
subprojects/core-api/src/main/java/org/gradle/api/flow/FlowParameters.java
* Example: * </p> * <pre> * public interface MyFlowParameters extends FlowParameters { * Property<String> getString(); * {@literal @}ServiceReference Property<MyBuildService> getBuildService(); * } * </pre> * * @see FlowAction * @since 8.1 */ @Incubating public interface FlowParameters { /** * Used for {@link FlowAction dataflow actions} without parameters. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 20 11:51:20 UTC 2022 - 1.6K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/BuildFlowScope.kt
} private fun <P : FlowParameters, T : FlowAction<P>> parametersTypeOf(action: Class<T>): Class<P>? = isolationScheme.parameterTypeFor(action) } data class RegisteredFlowAction( val type: Class<out FlowAction<FlowParameters>>, val parameters: FlowParameters? ) private class DefaultFlowScopeRegistration<P : FlowParameters> : FlowScope.Registration<P>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:59:39 UTC 2024 - 5.5K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/flow/FlowAction.java
* }); * } * } * </pre> * * @param <P> Parameter type for the dataflow action. Should be {@link FlowParameters.None} if the action does not have parameters. * @see FlowScope * @see FlowProviders * @since 8.1 */ @Incubating public interface FlowAction<P extends FlowParameters> { void execute(P parameters) throws Exception;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 16 20:51:35 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/dataflowActions/playSound/groovy/plugin/src/main/java/org/gradle/sample/sound/SoundPlay.java
import org.gradle.api.flow.FlowAction; import org.gradle.api.flow.FlowParameters; import org.gradle.api.provider.Property; import org.gradle.api.services.ServiceReference; import org.gradle.api.tasks.Input; import java.io.File; public abstract class SoundPlay implements FlowAction<SoundPlay.Parameters> { interface Parameters extends FlowParameters { @ServiceReference // <1>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 706 bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/integTest/groovy/org/gradle/internal/flow/services/FlowScopeIntegrationTest.groovy
} } class FlowActionInjection implements FlowAction<FlowParameters.None> { private final $serviceType.name service @Inject FlowActionInjection($serviceType.name service) {} void execute(FlowParameters.None parameters) { println("(green)") } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 9.2K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/other/dataflow_actions.adoc
- The parameters type is also a <<custom_gradle_types.adoc#custom_gradle_types,custom Gradle type>>. - The action implementation gets the parameters as an argument of the `execute` method. When the action requires no parameters, you can use link:{javadocPath}/org/gradle/api/flow/FlowParameters.None.html[FlowParameters.None] as the type of parameter.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 18:03:10 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowParametersInstantiator.kt
services: ServiceRegistry ) { fun <P : FlowParameters> newInstance(parametersType: Class<P>, configure: (P) -> Unit): P { return instantiator.newInstance(parametersType).also { configure(it) validate(parametersType, it) } } private fun <P : FlowParameters> validate(type: Class<P>, parameters: P) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 4.6K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowScheduler.kt
* limitations under the License. */ package org.gradle.internal.flow.services import org.gradle.api.file.ArchiveOperations import org.gradle.api.file.FileSystemOperations import org.gradle.api.flow.FlowParameters import org.gradle.internal.instantiation.InstantiatorFactory import org.gradle.internal.service.DefaultServiceRegistry import org.gradle.internal.service.ServiceRegistry import org.gradle.internal.service.scopes.Scope
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 2.1K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/flow/FlowScope.java
* @param <P> the parameters defined by the given {@link FlowAction dataflow action} type. * @return a {@link Registration} object representing the registered action. */ <P extends FlowParameters> Registration<P> always( Class<? extends FlowAction<P>> action, Action<? super FlowActionSpec<P>> configure ); /** * Represents a registered {@link FlowAction dataflow action}. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 2K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/flow/FlowActionSpec.java
* * @param <P> the parameters defined by the configured {@link FlowAction dataflow action} type. * @since 8.1 */ @Incubating public interface FlowActionSpec<P extends FlowParameters> { /** * Returns the parameters defined by the configured {@link FlowAction dataflow action}. * * @return mutable parameters object, never null. * @since 8.1 */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 18 18:52:41 UTC 2024 - 1.3K bytes - Viewed (0)