Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 289 for Instantiator (0.18 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/CoercingStringValueSnapshot.java

    import javax.annotation.Nullable;
    
    public class CoercingStringValueSnapshot extends StringValueSnapshot {
        private final NamedObjectInstantiator instantiator;
    
        public CoercingStringValueSnapshot(String value, NamedObjectInstantiator instantiator) {
            super(value);
            this.instantiator = instantiator;
        }
    
        @Nullable
        @Override
        public <S> S coerce(Class<S> type) {
            if (type.isInstance(getValue())) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/DefaultComponentMetadataProcessorTest.groovy

        def instantiator = TestUtil.instantiatorFactory().decorateLenient()
        def stringInterner = SimpleMapInterner.notThreadSafe()
        def mavenMetadataFactory = DependencyManagementTestUtil.mavenMetadataFactory()
        def ivyMetadataFactory = DependencyManagementTestUtil.ivyMetadataFactory()
        def dependencyMetadataNotationParser = DependencyMetadataNotationParser.parser(instantiator, DirectDependencyMetadataImpl, stringInterner)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiatorFactory.java

     *
     * <p>A service of this type is available in all scopes and is the recommended way to obtain an {@link Instantiator} and other types.</p>
     */
    @ServiceScope(Scope.Global.class)
    public interface InstantiatorFactory {
        /**
         * Creates an {@link Instantiator} that can inject services and user provided values into the instances it creates, but does not decorate the instances. Is not lenient.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/service/scopes/ProjectScopeServices.java

            return instantiator.newInstance(DefaultRuntimeClasspathNormalization.class);
        }
    
        @Provides
        protected InputNormalizationHandlerInternal createInputNormalizationHandler(Instantiator instantiator, RuntimeClasspathNormalizationInternal runtimeClasspathNormalizationStrategy) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:42 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecActionFactory.java

                this.fileCollectionFactory = fileCollectionFactory;
                return this;
            }
    
            @Override
            public Builder withInstantiator(Instantiator instantiator) {
                this.instantiator = instantiator;
                return this;
            }
    
            @Override
            public Builder withObjectFactory(ObjectFactory objectFactory) {
                this.objectFactory = objectFactory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 10 06:16:11 UTC 2023
    - 24K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/DefaultDependencyManagementServices.java

            DefaultComponentModuleMetadataHandler createComponentModuleMetadataHandler(Instantiator instantiator, ImmutableModuleIdentifierFactory moduleIdentifierFactory) {
                return instantiator.newInstance(DefaultComponentModuleMetadataHandler.class, moduleIdentifierFactory);
            }
    
            @Provides
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:14:33 UTC 2024
    - 37.8K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/DefaultNamedDomainObjectList.java

            super(objects, filter, instantiator, namer);
        }
    
        public DefaultNamedDomainObjectList(Class<T> type, Instantiator instantiator, Namer<? super T> namer, CollectionCallbackActionDecorator decorator) {
            super(type, new ListElementSource<T>(), instantiator, namer, decorator);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/FileCopier.java

            this.fileSystem = fileSystem;
            this.instantiator = instantiator;
            this.documentationRegistry = documentationRegistry;
        }
    
        private DestinationRootCopySpec createCopySpec(Action<? super SyncSpec> action) {
            DefaultCopySpec copySpec = new DefaultCopySpec(fileCollectionFactory, objectFactory, instantiator, patternSetFactory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorTest.groovy

    import spock.lang.Specification
    
    class DirectInstantiatorTest extends Specification {
        final DirectInstantiator instantiator = DirectInstantiator.INSTANCE
    
        def "creates instance with constructor parameters"() {
            CharSequence param = Mock()
    
            expect:
            def result = instantiator.newInstance(SomeType, param)
            result instanceof SomeType
            result.result == param
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiatorTest.groovy

        def classGenerator = new IdentityClassGenerator()
        def instantiator = new DependencyInjectingInstantiator(new Jsr330ConstructorSelector(classGenerator, new TestCrossBuildInMemoryCacheFactory.TestCache()), services)
    
        def "creates instance that has default constructor"() {
            when:
            def result = instantiator.newInstance(HasDefaultConstructor)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 04:41:06 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top