Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ClosureBackedRuleAction (0.26 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/rules/ClosureBackedRuleAction.java

    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.List;
    
    public class ClosureBackedRuleAction<T> implements RuleAction<T> {
        private final Closure<?> closure;
        private final Class<? super T> subjectType;
        private final List<Class<?>> inputTypes;
    
        public ClosureBackedRuleAction(Class<T> subjectType, Closure<?> closure) {
            this.subjectType = subjectType;
            this.closure = closure;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/ClosureBackedRuleActionTest.groovy

            expect:
            Matchers.strictlyEquals(a1, action(c))
            a1 == action(c)
            a1 != action({String bar -> })
            a1 != new ClosureBackedRuleAction(Integer.class, { Integer val -> })
        }
    
        RuleAction<String> action(Closure<?> c) {
            new ClosureBackedRuleAction<String>(String.class, c)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/internal/rules/DefaultRuleActionAdapter.java

        }
    
        @Override
        public <T> RuleAction<? super T> createFromClosure(Class<T> subjectType, Closure<?> closure) {
            try {
                return ruleActionValidator.validate(new ClosureBackedRuleAction<>(subjectType, closure));
            } catch (RuleActionValidationException e) {
                throw new InvalidUserCodeException(String.format(INVALID_CLOSURE_ERROR, context), e);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ComponentSelectionRulesProcessorTest.groovy

                new ClosureBackedRuleAction<ComponentSelection>(ComponentSelection, closure),
                Specs.<ComponentSelection> satisfyAll()
            )
        }
    
        def targetedRule(String group, String module, Closure<?> closure) {
            rules << new SpecRuleAction<ComponentSelection>(
                new ClosureBackedRuleAction<ComponentSelection>(ComponentSelection, closure),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultVersionedComponentChooserTest.groovy

    import org.gradle.internal.resolve.result.ComponentSelectionContext
    import org.gradle.internal.resolve.result.DefaultBuildableModuleComponentMetaDataResolveResult
    import org.gradle.internal.rules.ClosureBackedRuleAction
    import org.gradle.internal.rules.SpecRuleAction
    import org.gradle.util.AttributeTestUtil
    import org.gradle.util.SnapshotTestUtil
    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 17:38:42 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.internal.rules.ClosureBackedRuleAction> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (ClosureBackedRuleAction.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top