Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 982 for AsObject (0.19 sec)

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

            this.subject = Preconditions.checkNotNull(subject, "subject");
            this.descriptor = Preconditions.checkNotNull(descriptor, "descriptor");
            Preconditions.checkNotNull(inputs, "inputs");
            this.inputs = inputs.isEmpty() ? EMPTY_MODEL_REF_LIST : inputs;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingFailureIntegrationTest.groovy

      MyPlugin.Rules#mutateThing2(MyPlugin.MyThing2, MyPlugin.MyThing3, String, Integer)
        subject:
          - <no path> MyPlugin.MyThing2 (parameter 1) [*]
        inputs:
          - <no path> MyPlugin.MyThing3 (parameter 2) [*]
          - <no path> String (parameter 3) [*]
          - <no path> Integer (parameter 4) [*]
    
      MyPlugin.Rules#subjectOnly(MyPlugin.MyThing2)
        subject:
          - <no path> MyPlugin.MyThing2 (parameter 1) [*]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/LoggingExcludeFactory.java

        private final Subject subject;
    
        LoggingExcludeFactory(ExcludeFactory delegate) {
            super(delegate);
            this.subject = computeWhatToLog();
        }
    
        private static Subject computeWhatToLog() {
            String subjectString = System.getProperty("org.gradle.internal.dm.trace.excludes", Subject.all.toString());
            return Subject.valueOf(subjectString.toLowerCase());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. pkg/apis/flowcontrol/validation/validation.go

    // ValidateFlowSchemaSubject validates flow-schema's subject object.
    func ValidateFlowSchemaSubject(subject *flowcontrol.Subject, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    	switch subject.Kind {
    	case flowcontrol.SubjectKindServiceAccount:
    		allErrs = append(allErrs, ValidateServiceAccountSubject(subject.ServiceAccount, fldPath.Child("serviceAccount"))...)
    		if subject.User != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/AddProjectionsAction.java

        private AddProjectionsAction(ModelReference<T> subject, ModelRuleDescriptor descriptor, Iterable<ModelProjection> projections) {
            super(subject, descriptor);
            this.projections = projections;
        }
    
        public static <T> AddProjectionsAction<T> of(ModelReference<T> subject, ModelRuleDescriptor descriptor, ModelProjection... projections) {
            return of(subject, descriptor, Arrays.asList(projections));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelMap.java

            ModelRuleDescriptor descriptor = sourceDescriptor.append("named(%s)", name);
            ModelReference<T> subject = ModelReference.of(modelNode.getPath().child(name), elementType);
            modelNode.applyToLink(ModelActionRole.Mutate, new FilteringActionWrapper<T>(elementFilter, subject, NoInputsModelAction.of(subject, descriptor, configAction)));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 23K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/AbstractMethodRuleAction.java

        private final ModelReference<T> subject;
        private final ModelRuleDescriptor descriptor;
    
        public AbstractMethodRuleAction(ModelReference<T> subject, ModelRuleDescriptor descriptor) {
            this.subject = subject;
            this.descriptor = descriptor;
        }
    
        @Override
        public ModelReference<T> getSubject() {
            return subject;
        }
    
        public ModelRuleDescriptor getDescriptor() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. pkg/registry/rbac/validation/rule_test.go

    	tests := []struct {
    		subjects  []rbacv1.Subject
    		user      user.Info
    		namespace string
    		appliesTo bool
    		index     int
    		testCase  string
    	}{
    		{
    			subjects: []rbacv1.Subject{
    				{Kind: rbacv1.UserKind, Name: "foobar"},
    			},
    			user:      &user.DefaultInfo{Name: "foobar"},
    			appliesTo: true,
    			index:     0,
    			testCase:  "single subject that matches username",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/ClosureBackedRuleActionTest.groovy

            then:
            called
        }
    
        def "multiple arg closure called with correct subject and correct inputs"() {
            given:
            def called = false
            String thing = "1"
            def closure = { String subject, Integer other, String another ->
                called = true
                assert subject.is(thing)
                assert delegate.is(thing)
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

            onPropertyMissingSet.execute(name, value)
        }
    }
    
    class ActionsTester {
    
        Object subject = "subject"
        String lastMethod
        List lastArgs
    
        void oneAction(Action action) {
            lastMethod = "oneAction"
            lastArgs = [action]
            action.execute(subject)
        }
    
        void twoArgs(String first, Action action) {
            lastMethod = "twoArgs"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
Back to top