Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for forType (0.26 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiationScheme.java

        }
    
        @Override
        public Set<Class<? extends Annotation>> getInjectionAnnotations() {
            return injectionAnnotations;
        }
    
        @Override
        public <T> InstanceFactory<T> forType(Class<T> type) {
            return instantiator.factoryFor(type);
        }
    
        @Override
        public InstantiationScheme withServices(ServiceLookup services) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java

            // We don't know whether the task is cacheable or not, so we ignore cacheability problems for scheduling
            TypeValidationContext typeValidationContext = validationContext.forType(taskType, false);
            node.getTaskProperties().validateType(typeValidationContext);
            return validationContext;
        }
    
        private void logWarnings(List<? extends Problem> problems) {
            problems.stream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectSet.java

        }
    
        public DefaultNamedDomainObjectSet(Class<? extends T> type, Instantiator instantiator, CollectionCallbackActionDecorator decorator) {
            this(type, instantiator, Named.Namer.forType(type), decorator);
        }
    
        // should be protected, but use of the class generator forces it to be public
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:29 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ParamsMatchingConstructorSelector.java

        public void vetoParameters(ClassGenerator.GeneratedConstructor<?> constructor, Object[] parameters) {
            // Don't care
        }
    
        @Override
        public <T> ClassGenerator.GeneratedConstructor<? extends T> forType(Class<T> type) throws UnsupportedOperationException {
            throw new UnsupportedOperationException("This constructor selector requires the construction parameters");
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ValidateStep.java

            Class<?> workType = workClass.get();
            TypeValidationContext workValidationContext = validationContext.forType(workType, true);
            validateImplementation(workValidationContext, beforeExecutionState.getImplementation(), "Implementation of ", work);
            beforeExecutionState.getAdditionalImplementations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiator.java

            }
        }
    
        public <T> InstanceFactory<T> factoryFor(final Class<T> type) {
            final ClassGenerator.GeneratedConstructor<? extends T> constructor = constructorSelector.forType(type);
            return new InstanceFactory<T>() {
                @Override
                public boolean serviceInjectionTriggeredByAnnotation(Class<? extends Annotation> injectAnnotation) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/DefaultMethodArgsSerializerTest.groovy

            expect:
            def arraySerializer = serializer.forTypes([String, Long, String] as Class[])
            serialize(["a", 12L, "b"] as Object[], arraySerializer) == ["a", 12L, "b"] as Object[]
        }
    
        def "falls back to default when no serializer registry knows about types"() {
            given:
            def serializer = Stub(Serializer)
            defaultArgsBuilder.forTypes(_) >> serializer
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. test/typeparam/issue47708.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type FooType[T any] interface {
    	Foo(BarType[T]) string
    }
    type BarType[T any] interface {
    	Bar(FooType[T]) string
    }
    
    // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    // type Baz[T any] T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 934 bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/JavaSerializationBackedMethodArgsSerializerTest.groovy

            expect:
            def arraySerializer = serializer.forTypes([] as Class[])
            serialize([] as Object[], arraySerializer).length == 0
            toBytes([] as Object[], arraySerializer).length == 0
        }
    
        def "serializes single args"() {
            expect:
            def arraySerializer = serializer.forTypes([String,] as Class[])
            serialize(["a"] as Object[], arraySerializer) == ["a"] as Object[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. test/typeparam/issue47710.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    type FooType[t any] interface {
    	Foo(BarType[t])
    }
    type BarType[t any] interface {
    	Int(IntType[t]) FooType[int]
    }
    
    type IntType[t any] int
    
    func (n IntType[t]) Foo(BarType[t]) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 398 bytes
    - Viewed (0)
Back to top