- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 110 for constructorsOf (0.28 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectingInstantiatorTest.groovy
} def "fails when class has multiple constructors that are annotated"() { when: instantiator.newInstance(HasMultipleInjectConstructors, new StringBuilder("param")) then: ObjectInstantiationException e = thrown() e.cause.message == "Class DependencyInjectingInstantiatorTest.HasMultipleInjectConstructors has multiple constructors that are 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) -
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) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
} private static <X extends Exception> List<Constructor<X>> preferringStringsThenThrowables( List<Constructor<X>> constructors) { return WITH_STRING_PARAM_THEN_WITH_THROWABLE_PARAM.sortedCopy(constructors); } // TODO: b/296487962 - Consider defining a total order over constructors. private static final Ordering<List<Class<?>>> ORDERING_BY_CONSTRUCTOR_PARAMETER_LIST = Ordering.natural()
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 11.9K bytes - Viewed (0)