Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for InstantiatingAction (0.28 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/action/InstantiatingAction.java

    import java.util.List;
    
    public class InstantiatingAction<DETAILS> implements Action<DETAILS> {
        private final ConfigurableRules<DETAILS> rules;
        private final Instantiator instantiator;
        private final ExceptionHandler<DETAILS> exceptionHandler;
        private final Action<DETAILS>[] reusableRules;
    
        @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 07 16:57:42 UTC 2018
    - 3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultCompatibilityRuleChain.java

            rules.add(new InstantiatingAction<>(DefaultConfigurableRules.of(DefaultConfigurableRule.of(rule, configureAction, isolatableFactory)),
                instantiator, new ExceptionHandler<>(rule)));
        }
    
        @Override
        public void add(final Class<? extends AttributeCompatibilityRule<T>> rule) {
            rules.add(new InstantiatingAction<>(DefaultConfigurableRules.of(DefaultConfigurableRule.of(rule)),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/DefaultMetadataProviderTest.groovy

                }
            }
            resolveState.componentMetadataSupplier >> new InstantiatingAction<ComponentMetadataSupplierDetails>(
                DefaultConfigurableRules.of(DefaultConfigurableRule.of(TestSupplier)),
                TestUtil.instantiatorFactory().inject(),
                Stub(InstantiatingAction.ExceptionHandler)
            )
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 17:38:42 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/ComponentMetadataRuleExecutorTest.groovy

                }
            }
            rule = new InstantiatingAction<>(
                DefaultConfigurableRules.of(DefaultConfigurableRule.of(ruleClass)),
                instantiator,
                shouldNotFail()
            )
        }
    
    
        InstantiatingAction.ExceptionHandler<ComponentMetadataContext> shouldNotFail() {
            return new InstantiatingAction.ExceptionHandler<ComponentMetadataContext>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ModuleComponentRepository.java

    import org.gradle.api.artifacts.component.ComponentArtifactIdentifier;
    import org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.ResolvableArtifact;
    import org.gradle.internal.action.InstantiatingAction;
    
    import javax.annotation.Nullable;
    import java.util.Map;
    
    /**
     * A repository of module components.
     *
     * @param <T> the component resolution result type
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutorTest.groovy

                WithServiceInjected
            )
            rule = new InstantiatingAction<Details>(new DefaultConfigurableRules([rule1, rule2]), implicitInputsCapturingInstantiator, shouldNotFail())
        }
    
        InstantiatingAction.ExceptionHandler<Details> shouldNotFail() {
            return new InstantiatingAction.ExceptionHandler<Details>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/AbstractArtifactRepository.java

        }
    
    
        private static <T> InstantiatingAction<T> createRuleAction(final Instantiator instantiator, final ConfigurableRule<T> rule) {
            return new InstantiatingAction<>(DefaultConfigurableRules.of(rule), instantiator, (target, throwable) -> {
                throw UncheckedException.throwAsUncheckedException(throwable);
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/resolver/MavenResolverTest.groovy

            }
    
            def supplier = new InstantiatingAction<ComponentMetadataSupplierDetails>(DefaultConfigurableRules.of(Stub(ConfigurableRule)), TestUtil.instantiatorFactory().inject(), Stub(InstantiatingAction.ExceptionHandler))
            def lister = new InstantiatingAction<ComponentMetadataListerDetails>(DefaultConfigurableRules.of(Stub(ConfigurableRule)), TestUtil.instantiatorFactory().inject(), Stub(InstantiatingAction.ExceptionHandler))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/internal/action/InstantiatingActionTest.groovy

    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    import javax.inject.Inject
    
    class InstantiatingActionTest extends Specification {
    
        final shouldNotFail = new InstantiatingAction.ExceptionHandler() {
            @Override
            void handleException(Object target, Throwable throwable) {
                throw new AssertionError("Expected test to pass, but failed with an exception", throwable)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 14 07:19:04 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultDisambiguationRuleChain.java

            this.rules.add(new InstantiatingAction<>(DefaultConfigurableRules.of(DefaultConfigurableRule.of(rule, configureAction, isolatableFactory)),
                instantiator, new ExceptionHandler<>(rule)));
        }
    
        @Override
        public void add(final Class<? extends AttributeDisambiguationRule<T>> rule) {
            this.rules.add(new InstantiatingAction<>(DefaultConfigurableRules.of(DefaultConfigurableRule.of(rule)),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top