- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ConstructorCache (0.18 sec)
-
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/DirectInstantiator.java
/** * Please use {@link org.gradle.api.internal.InstantiatorFactory} instead. */ public static final Instantiator INSTANCE = new DirectInstantiator(); private final ConstructorCache constructorCache = new ConstructorCache(); /** * Please use {@link org.gradle.api.internal.InstantiatorFactory} instead. */ public static <T> T instantiate(Class<? extends T> type, Object... params) {
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/model-core/src/main/java/org/gradle/internal/instantiation/generator/Jsr330ConstructorSelector.java
private final CrossBuildInMemoryCache<Class<?>, CachedConstructor> constructorCache; private final ClassGenerator classGenerator; public Jsr330ConstructorSelector(ClassGenerator classGenerator, CrossBuildInMemoryCache<Class<?>, CachedConstructor> constructorCache) { this.constructorCache = constructorCache; this.classGenerator = classGenerator; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 07:52:37 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiationScheme.java
private final CrossBuildInMemoryCache<Class<?>, ClassGenerator.SerializationConstructor<?>> constructorCache; public DefaultDeserializationInstantiator(ClassGenerator classGenerator, ServiceLookup services, InstanceGenerator nestedGenerator, CrossBuildInMemoryCache<Class<?>, ClassGenerator.SerializationConstructor<?>> constructorCache) { this.classGenerator = classGenerator; this.services = services;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/jmh/java/org/gradle/internal/reflect/CachedConstructorsBenchmark.java
private final static int ARR_LEN = 1024; private final static Random RANDOM = new Random(); public static final Class<?>[] EMPTY = new Class<?>[0]; private final DirectInstantiator.ConstructorCache cache = new DirectInstantiator.ConstructorCache(); private Class<?>[] randomClasses; @Setup(Level.Iteration) public void configClasses() { randomClasses = new Class<?>[ARR_LEN];
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorCacheTest.groovy
import spock.lang.Shared import spock.lang.Specification import spock.lang.Unroll class DirectInstantiatorCacheTest extends Specification { @Shared def cache = new DirectInstantiator.ConstructorCache() @Unroll("constructor cache returns the same constructors as 'getConstructors' for #clazz") def "constructor cache returns the same constructors as 'getConstructors'"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.8K bytes - Viewed (0)