Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for constructorsOf (0.33 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/ClassBoundCallInterceptor.java

     * It only intercepts the calls where the receiver is the class of interest.
     * <p>
     * It is possible but not strictly necessary to use this interceptor to intercept constructors.
     * Due to the way constructor interception works, having an {@link InterceptScope#constructorsOf(Class)
     * as a scope already guarantees that the invocation would have the given class object as the receiver.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. 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)
  3. subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/DefaultCallSiteDecorator.java

                if (receiver instanceof Class) {
                    CallInterceptor realConstructorInterceptor = interceptors.get(InterceptScope.constructorsOf((Class<?>) receiver));
                    if (realConstructorInterceptor != null) {
                        return realConstructorInterceptor.intercept(invocation, consumer);
                    }
                }
                return invocation.callOriginal();
            }
        };
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java

            return result.stream().collect(CodeBlock.joining("\n\n"));
        }
    
        private static CodeBlock constructorScopeArg(TypeName constructedType) {
            return CodeBlock.of("$1T.constructorsOf($2T.class)", INTERCEPTED_SCOPE_CLASS, constructedType);
        }
    
        private static CodeBlock namedCallableScopesArgs(String name, List<CallInterceptionRequest> requests) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. 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)
  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. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top