Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,215 for Managed (0.27 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/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)
  4. 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)
  5. 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)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InvalidManagedModelMutationIntegrationTest.groovy

        }
    
        def "mutating managed objects referenced by another managed object outside of a creation rule is not allowed"() {
            when:
            buildScript '''
                @Managed
                interface Pet {
                    String getName()
                    void setName(String name)
                }
    
                @Managed
                interface Person {
                    Pet getPet()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedImplStructStrategyTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.model.internal.manage.schema.extract
    
    import org.gradle.model.Managed
    import org.gradle.model.internal.manage.schema.CompositeSchema
    import org.gradle.model.internal.manage.schema.ManagedImplSchema
    import org.gradle.model.internal.manage.schema.ManagedImplStructSchema
    import org.gradle.model.internal.manage.schema.StructSchema
    import org.gradle.model.internal.type.ModelType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/modelRules/modelDsl/groovy/build.gradle

    // tag::create-rule[]
    // tag::rule-inputs[]
    // tag::create-rule-no-config[]
    // tag::managed-type-nested-config-rule[]
    model {
    // end::create-rule[]
    // end::rule-inputs[]
    // end::create-rule-no-config[]
    // end::managed-type-nested-config-rule[]
        person {
            lastName = "Smith"
        }
    // end::configure-rule[]
    // tag::managed-type-nested-config-rule[]
        person {
            address {
                city = "Melbourne"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ModelDslCreationIntegrationTest.groovy

            failureCauseContains("""A model element of type: 'Thing' can not be constructed.
    It must be one of:
        - A managed type (annotated with @Managed)""")
        }
    
        def "cannot create non managed types and provide an initialization closure"() {
            when:
            buildScript '''
                apply plugin: 'language-base'
                interface Thing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top