Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 775 for getThing (0.26 sec)

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

        Number getThing()
    }
    
    class BeanWithServices {
        @Inject
        Number getThing() {
            throw new UnsupportedOperationException()
        }
    }
    
    class BeanWithMutableServices extends BeanWithServices {
        void setThing(Number number) {
            throw new UnsupportedOperationException()
        }
    }
    
    class BeanWithServicesAndServiceRegistry extends BeanWithServices {
        ServiceRegistry getServices() {
    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. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r30/CustomModelBuildingAction.java

        public CustomModel execute(BuildController controller) {
            CustomModel model1 = controller.getModel(CustomModel.class);
            CustomModel model2 = controller.getModel(CustomModel.class);
            assert model1.getThing() == model2.getThing();
            return model1;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r30/ComplexCustomModelBuildingAction.java

            CustomModel rootProjectModel = controller.getModel(controller.getBuildModel().getRootProject(), CustomModel.class);
            for (CustomModel customModel : result.values()) {
                assert customModel.getThing() == rootProjectModel.getThing();
            }
    
            return result;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r16/CustomModel.java

     */
    
    package org.gradle.integtests.tooling.r16;
    
    import java.util.Map;
    import java.util.Set;
    
    public interface CustomModel {
        String getValue();
    
        Thing getThing();
    
        Set<Thing> getThings();
    
        Map<String, Thing> getThingsByName();
    
        Thing findThing(String name);
    
        interface Thing {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 921 bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ForceScalaCompileIntegrationTest.groovy

    package org.test
    
    class Person(name: String) {
        def getName(): String = name
    }
    """
            file('src/main/scala/org/test/Other.scala') << """
    package org.test
    
    class Other(thing: String) {
        def getThing(): String = thing
    }
    """
            when:
            succeeds 'compileScala'
    
            then:
            file('build/classes/scala/main/org/test/Person.class').exists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 23:46:06 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedByRuleMethodIntegrationTest.groovy

            buildFile << '''
                @Managed
                interface SomeThings {
                    Thing getThingA()
                    Thing getThingB()
                    Thing getThingC()
                }
    
                @Managed
                interface Thing {
                    String getName()
                    void setName(String name)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r30/CustomToolingModelCrossVersionSpec.groovy

    allprojects {
        apply plugin: CustomPlugin
    }
    
    class CustomModel implements Serializable {
        static final INSTANCE = new CustomThing()
        String getValue() { 'greetings' }
        CustomThing getThing() { return INSTANCE }
        Set<CustomThing> getThings() { return [INSTANCE] }
        Map<String, CustomThing> getThingsByName() { return [child: INSTANCE] }
        CustomThing findThing(String name) { return INSTANCE }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorTest.java

            abstract String getThing();
        }
    
        public static abstract class AbstractSetterBean {
            String getThing() {
                return "";
            }
    
            abstract void setThing(String value);
        }
    
        public static abstract class AbstractSetMethodBean {
            String getThing() {
                return "";
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 74.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractorTest.groovy

        @Managed
        interface SpecialThing extends Thing {}
    
        @Managed
        interface SimpleModel {
            Thing getThing()
        }
    
        @Managed
        interface SpecialModel extends SimpleModel {
            SpecialThing getThing()
    
            void setThing(SpecialThing thing)
        }
    
        def "a subclass may specialize a property type"() {
            when:
            def schema = extract(SpecialModel)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaStoreTest.groovy

                    "class SomeThing {}",
                    "@${Managed.name} interface SomeThing { SomeThing getThing() }",
                    "@${Managed.name} interface SomeThing { ${ModelSet.name}<SomeThing> getThings() }",
                    "@${Managed.name} interface SomeThing { @${Managed.name} static interface Child {}; ${ModelSet.name}<Child> getThings() }",
            ]
        }
    
        def "does not hold strong reference to a managed #type type"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top