Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,172 for Managed (0.4 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/state/Managed.java

     * limitations under the License.
     */
    
    package org.gradle.internal.state;
    
    import javax.annotation.Nullable;
    
    /**
     * Implemented by types whose state is fully managed by Gradle. Mixed into generated classes whose state is fully managed.
     */
    public interface Managed {
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/Managed.java

    import java.lang.annotation.Target;
    
    /**
     * A managed type is transparent to the model space, and enforces immutability at the appropriate times in the object's lifecycle.
     * <p>
     * Gradle generates implementations for managed types.
     * As such, managed types are declared either as interfaces or abstract classes.
     * The generated implementation integrates with the model space mechanisms, and manages mutability.
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaStoreTest.groovy

                    "@${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"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/structuredmerge.go

    	_, managedFields, err := f.updater.Update(liveObjTyped, newObjTyped, apiVersion, managed.Fields(), manager)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to update ManagedFields (%v): %v", objectGVKNN(newObjVersioned), err)
    	}
    	managed = NewManaged(managedFields, managed.Times())
    
    	return newObj, managed, nil
    }
    
    // Apply implements Manager.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:55:50 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/binding/DefaultStructBindingsStoreTest.groovy

            ex.message == """Type ${fullyQualifiedNameOf(HasUnmanagedOnManaged)} is not a valid managed type:
    - Property 'myEnum' is not valid: it is marked as @Unmanaged, but is of @Managed type '${getName(MyEnum)}'; please remove the @Managed annotation"""
        }
    
        @Managed
        static interface NoSetterForUnmanaged {
            @Unmanaged
            InputStream getThing();
        }
    
        def "must have setter for unmanaged"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/modelRules/basicRuleSourcePlugin/groovy/build.gradle

    // tag::managed-type-plugin-and-dsl[]
    // tag::managed-type-and-plugin[]
    // tag::managed-type[]
    @Managed
    interface Person {
    // tag::property-type-string[]
      void setFirstName(String name)
      String getFirstName()
    // end::property-type-string[]
    
      void setLastName(String name)
      String getLastName()
    // end::managed-type[]
    // end::managed-type-and-plugin[]
    // end::managed-type-plugin-and-dsl[]
    
    // tag::property-type-int[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaExtractorTest.groovy

    - type parameter of $ModelSet.name has to be specified"""
        }
    
        @Managed
        interface Thing {}
    
        @Managed
        interface SpecialThing extends Thing {}
    
        @Managed
        interface SimpleModel {
            Thing getThing()
        }
    
        @Managed
        interface SpecialModel extends SimpleModel {
            SpecialThing getThing()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    println(instance.name) // Prints: myName
    ----
    
    [[managed_types]]
    == Using Gradle Managed Types
    
    A managed type as an abstract class or interface with no fields and whose properties are all managed.
    These types have their state entirely managed by Gradle.
    
    For example, this managed type is defined as an interface:
    
    [source,java]
    .Resource.java
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy

            and:
            output.contains("name: foo")
        }
    
        def "rule can provide a managed model element backed by an abstract class that extends other classes"() {
            when:
            buildScript '''
                @Managed
                abstract class Named {
                    abstract String getName()
                }
    
                @Managed
                abstract class Person extends Named {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top