- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 406 for CONSTRUCTOR (0.14 sec)
-
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) -
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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiatorFactory.java
* The returned {@link Instantiator} is lenient when there is a missing {@link javax.inject.Inject} annotation or null constructor parameters, * for backwards compatibility. * * <p>Use for any model types for which no user provided constructor values or services need to be injected. This is a convenience for {@link #decorateLenientScheme()} and will also be retired. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 7.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/timeout/IntegrationTestTimeoutExtension.java
try { Constructor<?> constructor = timeout.onlyIf().getConstructors()[0]; int paramCount = constructor.getParameterCount(); Object[] param = new Object[paramCount]; for (int i = 0; i < paramCount; i++) { param[i] = this; } if (((Closure<Boolean>) constructor.newInstance(param)).call()) { runnable.run();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/FormattingValidationProblemCollector.java
} @Override public void add(Constructor<?> constructor, String problem) { String description = MethodDescription.name(ModelType.of(constructor.getDeclaringClass()).getDisplayName()) .takes(constructor.getGenericParameterTypes()) .toString(); problems.add("Constructor " + description + " is not valid: " + problem); } public String format() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.5K bytes - Viewed (0)