Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for RegisterBinding (0.38 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/component/DefaultSoftwareComponentContainerIntegrationTest.groovy

                ${customGroovyComponentWithName("TestComponent")}
                ${customGroovyComponentWithName("CustomComponent")}
    
                components {
                    registerBinding(SoftwareComponent, DefaultTestComponent)
                    registerBinding(CustomComponent, DefaultCustomComponent)
                    first {
                        value = 1
                    }
                    second(SoftwareComponent) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 14 22:59:22 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/authentication/DefaultAuthenticationContainerTest.groovy

        def container = new DefaultAuthenticationContainer(TestUtil.instantiatorFactory().decorateLenient(), CollectionCallbackActionDecorator.NOOP)
    
        def setup() {
            container.registerBinding(TestAuthentication, DefaultTestAuthentication)
            container.registerBinding(CustomTestAuthentication, DefaultCustomTestAuthentication)
        }
    
        def "can add multiple authentication schemes with common supertype"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 26 05:36:10 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/jvm/component/internal/DefaultJvmSoftwareComponentIntegrationTest.groovy

                components {
                    registerBinding(JvmSoftwareComponentInternal, DefaultJvmSoftwareComponent)
                }
            """
        }
    
        private static final String factoryRegistrationKotlin() {
            """
                ${importStatements()}
    
                components {
                    registerBinding(JvmSoftwareComponentInternal::class.java, DefaultJvmSoftwareComponent::class.java)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:18:02 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

                interface ThingB extends BaseThing { }
    
                def container = project.objects.polymorphicDomainObjectContainer(BaseThing)
                container.registerBinding(ThingA, ThingA)
                container.registerBinding(ThingB, ThingB)
                container.register("a", ThingA) {
                    value = 0
                }
                container.register("b", ThingB) {
                    value = 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. subprojects/core-api/src/main/java/org/gradle/api/ExtensiblePolymorphicDomainObjectContainer.java

         *
         * @param type a public domain object type
         * @param implementationType the corresponding implementation type
         * @param <U> a public domain object type
         */
        <U extends T> void registerBinding(Class<U> type, final Class<? extends U> implementationType);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 03 14:28:15 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-test-report-aggregation/src/main/java/org/gradle/api/plugins/TestReportAggregationPlugin.java

            testAggregation.setVisible(false);
    
            ReportingExtension reporting = project.getExtensions().getByType(ReportingExtension.class);
            reporting.getReports().registerBinding(AggregateTestReport.class, DefaultAggregateTestReport.class);
    
            ObjectFactory objects = project.getObjects();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 20:53:52 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/DefaultPolymorphicDomainObjectContainer.java

                @Override
                public U create(String name) {
                    return factory.call(name);
                }
            });
        }
    
        @Override
        public <U extends T> void registerBinding(Class<U> type, final Class<? extends U> implementationType) {
            registerFactory(type, new NamedDomainObjectFactory<U>() {
                boolean named = Named.class.isAssignableFrom(implementationType);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 5K bytes
    - Viewed (0)
  8. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/DefaultJavaToolchainRepositoryHandler.java

            for (Map.Entry<Class<Authentication>, Class<? extends Authentication>> e : authenticationSchemeRegistry.getRegisteredSchemes().entrySet()) {
                authenticationContainer.registerBinding(e.getKey(), e.getValue());
            }
            AuthenticationSupporter authenticationSupporter = new AuthenticationSupporter(instantiator, objectFactory, authenticationContainer, providerFactory);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultPolymorphicDomainObjectContainerTest.groovy

                { it instanceof Named ? it.name : "unknown" } as Named.Namer, CollectionCallbackActionDecorator.NOOP)
    
            container.registerBinding(UnnamedPerson, DefaultUnnamedPerson)
            container.registerBinding(CtorNamedPerson, DefaultCtorNamedPerson)
    
            when:
            container.create("fred", UnnamedPerson)
            container.create("barney", CtorNamedPerson)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 16K bytes
    - Viewed (0)
  10. platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/plugins/JacocoReportAggregationPlugin.java

                });
            });
    
            ReportingExtension reporting = project.getExtensions().getByType(ReportingExtension.class);
            reporting.getReports().registerBinding(JacocoCoverageReport.class, DefaultJacocoCoverageReport.class);
    
            // Iterate and configure each user-specified report.
            reporting.getReports().withType(JacocoCoverageReport.class).all(report -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 16:25:42 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top