Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 767 for CONSTRUCTOR (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/imports.ir.txt

          $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.CodeFragment
          CONSTRUCTOR visibility:public <> () returnType:<root>.CodeFragment [primary]
            BLOCK_BODY
              DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Aug 30 06:38:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top