Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 342 for getStep (1.42 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorInjectDecoratedTest.groovy

        }
    
        def "cannot attach @Inject annotation to non getter method"() {
            when:
            generator.generate(NonGetterInjectBean)
    
            then:
            def e = thrown(ClassGenerationException)
            e.cause.message == "Cannot use @Inject annotation on method NonGetterInjectBean.thing() as it is not a property getter."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescSyntheticJavaPropertySymbol.kt

            get() = withValidityAssertion { descriptor.isExtension }
    
        override val getter: KaPropertyGetterSymbol
            get() = withValidityAssertion {
                val getter = descriptor.getter ?: return KaFe10DescDefaultPropertyGetterSymbol(descriptor, analysisContext)
                return KaFe10DescPropertyGetterSymbol(getter, analysisContext)
            }
    
        override val javaGetterSymbol: KaFunctionSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionServiceInjectionIntegrationTest.groovy

                    }
                }
    
                extensions.create("thing", Thing, "a", 12)
            """
    
            expect:
            succeeds()
        }
    
        def "can inject service using getter"() {
            buildFile """
                class Thing {
                    Thing(String a) {
                    }
    
                    @Inject
                    ObjectFactory getObjects() { }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/plugins/propertyServiceInjection/groovy/buildSrc/src/main/java/Download.java

    import org.gradle.workers.WorkerExecutor;
    
    // tag::download[]
    public abstract class Download extends DefaultTask {
        // Use an abstract getter method
        @Inject
        protected abstract ObjectFactory getObjectFactory();
    
        // Alternatively, use a getter method with a dummy implementation
        @Inject
        protected WorkerExecutor getWorkerExecutor() {
            // Method body is ignored
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 816 bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescSyntheticJavaPropertySymbolForOverride.kt

            get() = withValidityAssertion { descriptor.isExtension }
    
        override val getter: KaPropertyGetterSymbol
            get() = withValidityAssertion {
                val getter = descriptor.getter ?: return KaFe10DescDefaultPropertyGetterSymbol(descriptor, analysisContext)
                return KaFe10DescPropertyGetterSymbol(getter, analysisContext)
            }
    
        override val javaGetterSymbol: KaFunctionSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage.go

    }
    
    type DefaultPolicyGetter struct {
    	Getter rest.Getter
    }
    
    func (g *DefaultPolicyGetter) GetValidatingAdmissionPolicy(ctx context.Context, name string) (*admissionregistration.ValidatingAdmissionPolicy, error) {
    	p, err := g.Getter.Get(ctx, name, &metav1.GetOptions{})
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. test/fixedbugs/bug141.go

    package main
    
    import "os"
    
    type S struct { i int }
    func (p *S) Get() int { return p.i }
    
    type Empty interface {
    }
    
    type Getter interface {
    	Get() int;
    }
    
    func f1(p Empty) {
    	switch x := p.(type) {
    	default: println("failed to match interface", x); os.Exit(1);
    	case Getter: break;
    	}
    
    }
    
    func main() {
    	var s S;
    	f1(&s);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 491 bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/artifacts/transform/TransformAction.java

     * </ul>
     *
     *  Implementations can receive parameters by using annotated abstract getter methods.
     *  <ul>
     *      <li>An abstract getter annotated with {@link InputArtifact} will receive the input artifact location, which is the file or directory that the transform should be applied to.</li>
     *      <li>An abstract getter with {@link InputArtifactDependencies} will receive the dependencies of its input artifact.</li>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 05 15:49:03 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  9. pkg/serviceaccount/legacy.go

    }
    
    func NewLegacyValidator(lookup bool, getter ServiceAccountTokenGetter, secretsWriter typedv1core.SecretsGetter) (Validator, error) {
    	if lookup && getter == nil {
    		return nil, errors.New("ServiceAccountTokenGetter must be provided")
    	}
    	if lookup && secretsWriter == nil {
    		return nil, errors.New("SecretsWriter must be provided")
    	}
    	return &legacyValidator{
    		lookup:        lookup,
    		getter:        getter,
    		secretsWriter: secretsWriter,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/tasks/Nested.java

     *
     * <p>This annotation should be attached to the getter method in Java or the property in Groovy.
     * Annotations on setters or just the field in Java are ignored.</p>
     *
     * <p>Gradle will attempt to instantiate a nested bean on abstract getter methods annotated with this annotation.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 27 22:03:08 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top