- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 73 for constructorsOf (0.31 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/ConstructorComparatorTest.groovy
*/ package org.gradle.internal.instantiation.generator import spock.lang.Specification class ConstructorComparatorTest extends Specification { def comparator = new ConstructorComparator() def "constructors with fewer parameters are first"() { def lhs = Stub(ClassGenerator.GeneratedConstructor) lhs.parameterTypes >> [String] def rhs = Stub(ClassGenerator.GeneratedConstructor)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectionUsingLenientConstructorSelectorTest.groovy
} def "fails when no constructors match parameters"() { when: instantiator.newInstance(HasConstructors, ["a", "b"] as Object[]) then: ObjectInstantiationException e = thrown() e.cause instanceof IllegalArgumentException
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/DirectInstantiator.java
@Override protected CachedConstructor create(Class<?> receiver, Class<?>[] argumentTypes) { Constructor<?>[] constructors = receiver.getConstructors(); Constructor<?> match = null; for (Constructor<?> constructor : constructors) { Class<?>[] parameterTypes = constructor.getParameterTypes(); if (parameterTypes.length == argumentTypes.length) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/DefaultBeanStateReaderLookup.kt
import org.gradle.internal.service.scopes.ServiceScope import java.util.concurrent.ConcurrentHashMap @ServiceScope(Scope.BuildTree::class) class DefaultBeanStateReaderLookup( private val constructors: BeanConstructors, private val instantiatorFactory: InstantiatorFactory ) : BeanStateReaderLookup { private val beanStateReaders = ConcurrentHashMap<Class<*>, BeanStateReader>()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.5K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10ScopeResolution.kt
constructors.forEach { yield(it.toKtConstructorSymbol(analysisContext)) } } } internal open class KaFe10ScopeNonStaticMember( scope: MemberScope, constructors: Collection<ConstructorDescriptor>, analysisContext: Fe10AnalysisContext ) : KaFe10ScopeMember(scope, constructors, analysisContext) {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt
val functions = functionExtractor.memberFunctions(kClass, preIndex) val constructors = functionExtractor.constructors(kClass, preIndex) val name = kClass.fqName return DefaultDataClass(name, supertypesOf(kClass), properties, functions.toList(), constructors.toList()) } private fun supertypesOf(kClass: KClass<*>): Set<FqName> = buildSet {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:02 UTC 2024 - 5.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ConstructorComparator.java
*/ package org.gradle.internal.instantiation.generator; import java.util.Comparator; /** * Sorts GeneratedConstructors based on the number of parameters. * * When two constructors have the same number of parameters, we settle on a stable sort by looking at the names of the * types of the parameters. * */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyReader.kt
import org.gradle.internal.service.ServiceRegistry import org.gradle.internal.state.ModelObject import java.lang.reflect.Field class BeanPropertyReader( private val beanType: Class<*>, private val constructors: BeanConstructors, instantiatorFactory: InstantiatorFactory ) : BeanStateReader { // TODO should use the same scheme as the original bean private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 3.5K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/stored.rules
classes\ that\ are\ not\ special\ class\ and\ are\ injected\ into\ getters\ via\ @Inject\ or\ are\ injected\ into\ constructors\ via\ @Inject\ should\ be\ annotated\ with\ @ServiceScope=injected-services-should-have-service-scope-applied.txt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 08:43:33 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt
import org.gradle.internal.service.scopes.ServiceScope import sun.reflect.ReflectionFactory import java.lang.reflect.Constructor /** * A global service that caches the serialization constructors for bean types. */ @ServiceScope(Scope.Global::class) class BeanConstructors( cacheFactory: CrossBuildInMemoryCacheFactory ) { private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 2.7K bytes - Viewed (0)