Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,096 for Unmanaged (0.22 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/Unmanaged.java

    import java.lang.annotation.Target;
    
    /**
     * Indicates that a property of a managed model element is explicitly of an unmanaged type.
     * <p>
     * This annotation must be present on the <b>getter</b> of the property for the unmanaged type.
     * If the annotation is not present for a property that is not a managed type, a fatal error will occur.
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.METHOD)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/UnmanagedCollectionPropertyIntegrationTest.groovy

            class Widget {
                String name
            }
    
            @Managed
            interface Container {
                @Unmanaged
                List<Widget> getWidgets()
                void setWidgets(List<Widget> l)
    
                @Unmanaged
                Set<Widget> getItems()
                void setItems(Set<Widget> s)
    
                @Unmanaged
                List getRawWidgets()
                void setRawWidgets(List l)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                            assert components*.name == ["managed", "unmanaged"]
                            assert components.withType(ComponentSpec)*.name == ["managed", "unmanaged"]
                            assert components.withType(UnmanagedComponentSpec)*.name == ["managed", "unmanaged"]
                            assert components.withType(ManagedComponentSpec)*.name == ["managed"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ManagedModelInitializerTest.groovy

    A managed collection can not contain 'java.io.FileInputStream's
    A valid managed collection takes the form of ModelSet<T> or ModelMap<T> where 'T' is:
            - A managed type (annotated with @Managed)""")
        }
    
        @Managed
        interface ManagedWithInvalidModelMap {
            ModelMap<FileInputStream> getMap()
        }
    
        @Managed
        interface ManagedWithUnsupportedType {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelReportIntegrationTest.groovy

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedTypeWithUnmanagedPropertiesIntegrationTest.groovy

                class MyFile extends File {
                  MyFile(String s) { super(s) }
                }
    
                @Managed
                interface ManagedThing {
                    @Unmanaged
                    UnmanagedThing getUnmanaged()
                    void setUnmanaged(UnmanagedThing unmanaged)
    
                    @Unmanaged
                    MyFile getFile()
                    void setFile(MyFile file)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/model/internal/fixture/ModelRegistryHelperExtension.java

            return unmanaged(builder, ModelType.of(modelType), inputPath, referenceDescription, action);
        }
    
        public static <C> ModelRegistration unmanaged(ModelRegistrations.Builder builder, ModelType<C> modelType, String inputPath, Transformer<? extends C, Object> action) {
            return unmanaged(builder, modelType, inputPath, inputPath, action);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ScalarTypesInManagedModelTest.groovy

                File]
        }
    
        def "can have a #type as an @Unmanaged property"() {
            when:
            def clazz = classLoader.parseClass """
                import org.gradle.api.artifacts.Configuration.State
                import org.gradle.model.Managed
                import org.gradle.model.Unmanaged
    
                @Managed
                interface ManagedType {
                    @Unmanaged
                    $type getUnmanagedReadWriteProperty()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-groovy/src/test/groovy/org/gradle/model/dsl/internal/NonTransformedModelDslBackingTest.groovy

                    }
                }
            }
    
            then:
            registry.get("foo", Foo).bar.first().name == "one"
        }
    
        def "cannot create unmanaged"() {
            when:
            modelDsl.configure {
                unmanaged(Unmanaged)
            }
    
            then:
            thrown ModelTypeInitializationException
        }
    
        def "can use property accessors in DSL to build model object path"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/typeregistration/InstanceFactory.java

        /**
         * Return information about the implementation of an unmanaged type.
         */
        @Nullable
        <S extends T> ImplementationInfo getImplementationInfo(ModelType<S> publicType);
    
        /**
         * Return information about the implementation of a managed type with an unmanaged super-type.
         */
        <S extends T> ImplementationInfo getManagedSubtypeImplementationInfo(ModelType<S> publicType);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top