- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 632 for CONSTRUCTOR (0.55 sec)
-
platforms/documentation/docs/src/snippets/tasks/taskConstructorArgs-onTaskContainer/groovy/build.gradle
// tag::inject-task-constructor[] abstract class CustomTask extends DefaultTask { private final String message private final int number @Inject CustomTask(String message, int number) { this.message = message this.number = number } // end::inject-task-constructor[] @TaskAction void printIt() { println("$message $number") } // tag::inject-task-constructor[] }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 559 bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheException.kt
/** * State might be corrupted and should be discarded. */ @Contextual class ConfigurationCacheError internal constructor( error: String, cause: Throwable? = null ) : ConfigurationCacheThrowable, Exception(error, cause) @Contextual sealed class ConfigurationCacheException protected constructor( message: () -> String, causes: Iterable<Throwable>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tasks/taskConstructorArgs-onTaskContainer/kotlin/build.gradle.kts
// tag::inject-task-constructor[] abstract class CustomTask @Inject constructor( private val message: String, private val number: Int ) : DefaultTask() // end::inject-task-constructor[] { @TaskAction fun run() = println("$message $number") } // tag::on-task-container[] tasks.register<CustomTask>("myTask", "hello", 42)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 374 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectionUsingLenientConstructorSelectorTest.groovy
} def "uses exact match constructor when constructors could be ambiguous with multiple parameters"() { when: // HasSeveralParameters has 3 constructors // 1 with 3 parameters and 2 with 4 parameters // the constructor with 3 parameters is a subset of the 4 parameter constructor
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_savedmodel_passes.td
let summary = "Optimize tf_saved_model.global_tensor's."; let constructor = "mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass()"; } def RemoveVariablesInSessionInitializerPass : Pass<"tf-saved-model-remove-vars-in-session-initializer", "ModuleOp"> { let summary = "Remove variables in tf saved model's session initializer."; let constructor = "mlir::tf_saved_model::CreateRemoveVariablesInSessionInitializerPass()"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 09 19:11:34 UTC 2023 - 7.3K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskServiceInjectionIntegrationTest.groovy
def "can construct a task in Kotlin with @Inject services constructor arg"() { given: settingsFile << "rootProject.buildFileName = 'build.gradle.kts'" file("build.gradle.kts") << """ import org.gradle.api.* import org.gradle.api.tasks.* import org.gradle.workers.WorkerExecutor open class CustomTask @Inject constructor(private val executor: WorkerExecutor) : DefaultTask() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ConstructorSelector.java
/** * Allows this selector to veto the parameters to use with the given constructor. */ void vetoParameters(ClassGenerator.GeneratedConstructor<?> constructor, Object[] parameters); /** * Locates the constructor that should be used to create instances of the given type with the given params. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataResolutionException.java
public MetadataResolutionException() { // TODO Auto-generated constructor stub } public MetadataResolutionException(String message) { super(message); // TODO Auto-generated constructor stub } public MetadataResolutionException(Throwable cause) { super(cause); // TODO Auto-generated constructor stub }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 11:28:54 UTC 2023 - 1.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt
* * @constructor Create a new connection pool with tuning parameters appropriate for a single-user * application. The tuning parameters in this pool are subject to change in future OkHttp releases. * Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of * inactivity. */ class ConnectionPool internal constructor( internal val delegate: RealConnectionPool, ) {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Apr 03 20:39:41 UTC 2024 - 5.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/JavaReflectionUtil.java
*/ public static <T> T newInstance(Class<T> c) { try { Constructor<T> constructor = c.getDeclaredConstructor(); constructor.setAccessible(true); return constructor.newInstance(); } catch (Throwable e) { throw UncheckedException.throwAsUncheckedException(e); } } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.7K bytes - Viewed (0)