Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 691 for constructors (0.19 sec)

  1. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesInitializationTest.groovy

            e.message == "Cannot get an instance of NativeServices without first calling initialize()."
        }
    
        def "no public constructors on NativeServices" () {
            Constructor[] constructors = NativeServices.getConstructors()
    
            expect:
            constructors.size() == 0
        }
    
        private static URL jar(Class clazz) {
            clazz.getProtectionDomain().getCodeSource().getLocation()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 08:51:56 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiatorTest.groovy

            when:
            instantiator.newInstance(HasMixedConstructors, new StringBuilder("param"))
    
            then:
            ObjectInstantiationException e = thrown()
            e.cause.message == "Class DependencyInjectingInstantiatorTest.HasMixedConstructors has no constructor that is annotated with @Inject."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 19 04:41:06 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java

            }
    
            if (constructors.isEmpty()) {
                throw failedImplicitBinding(key, "inject annotation on interface");
            }
            if (constructors.size() > 1) {
                throw failedImplicitBinding(key, "inject annotation on class with multiple constructors");
            }
            Constructor<T> declaredConstructor =
                    (Constructor<T>) constructors.iterator().next();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        @SuppressWarnings({"unchecked", "rawtypes"})
        List<Constructor<X>> constructors = (List) Arrays.asList(exceptionClass.getConstructors());
        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
          X instance = newFromConstructor(constructor, cause);
          if (instance != null) {
            if (instance.getCause() == null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/InterceptScope.java

            this.callType = callType;
        }
    
        /**
         * The returned scope includes calls to all constructors of class {@code constructorClass}.
         *
         * @param constructorClass the class whose constructors are to be intercepted
         * @return the scope object
         */
        public static InterceptScope constructorsOf(Class<?> constructorClass) {
            return new ConstructorScope(constructorClass);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 14:02:30 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. 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)
  7. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt

        private
        fun newConstructorForSerialization(beanType: Class<*>, constructor: Constructor<*>): Constructor<out Any> =
            ReflectionFactory.getReflectionFactory().newConstructorForSerialization(beanType, constructor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. 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)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/FunctionExtractor.kt

        }
    
        override fun constructors(kClass: KClass<*>, preIndex: DataSchemaBuilder.PreIndex): Iterable<DataConstructor> =
            kClass.constructors.filter { it.visibility == KVisibility.PUBLIC && includeFilter.shouldIncludeMember(it) }
                .map { constructor ->
                    constructor(constructor, kClass, preIndex)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. 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)
Back to top