Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UnmanagedThing (0.23 sec)

  1. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/NestedModelRuleDslDetectionIntegrationTest.groovy

            buildFile << '''
    class UnmanagedThing {
        def getSomeProp() {
            return this
        }
        def conf(Closure cl) {
            cl.delegate = this
            cl.call()
        }
    }
    
    class MyPlugin extends RuleSource {
        @Model
        UnmanagedThing thing() { return new UnmanagedThing() }
    }
    apply plugin: MyPlugin
    
    model {
        thing {
            conf {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedTypeWithUnmanagedPropertiesIntegrationTest.groovy

            buildScript '''
                class UnmanagedThing {
                  String value
                }
                class MyFile extends File {
                  MyFile(String s) { super(s) }
                }
    
                @Managed
                interface ManagedThing {
                    @Unmanaged
                    UnmanagedThing getUnmanaged()
                    void setUnmanaged(UnmanagedThing unmanaged)
    
                    @Unmanaged
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractorTest.groovy

                extractionContext.child(ModelType.of(UnmanagedThing), "child")
                extractionContext.found(new ScalarValueSchema<CustomThing>(extractionContext.type))
            }
            1 * strategy.extract(_) >> { ModelSchemaExtractionContext extractionContext ->
                assert extractionContext.type == ModelType.of(UnmanagedThing)
                extractionContext.found(new ScalarValueSchema<UnmanagedThing>(extractionContext.type))
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.9K bytes
    - Viewed (0)
Back to top