Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for newClassCache (0.42 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiatorFactory.java

            ConstructorSelector injectOnlyJsr330Selector = new Jsr330ConstructorSelector(injectOnlyGenerator, cacheFactory.newClassCache());
            ConstructorSelector decoratedJsr330Selector = new Jsr330ConstructorSelector(decoratedGenerator, cacheFactory.newClassCache());
            ConstructorSelector injectOnlyLenientSelector = new ParamsMatchingConstructorSelector(injectOnlyGenerator);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DefaultInstantiationSchemeTest.groovy

        def scheme = new DefaultInstantiationScheme(
            new Jsr330ConstructorSelector(classGenerator, cacheFactory.newClassCache()),
            classGenerator,
            new DefaultServiceRegistry(),
            [] as Set,
            new TestCrossBuildInMemoryCacheFactory())
    
        def "can specify a set of services to inject"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/testFixtures/groovy/org/gradle/cache/internal/TestCrossBuildInMemoryCacheFactory.groovy

        <K, V> CrossBuildInMemoryCache<K, V> newCacheRetainingDataFromPreviousBuild(Predicate<V> retentionFilter) {
            return new TestCache<K, V>()
        }
    
        @Override
        <V> CrossBuildInMemoryCache<Class<?>, V> newClassCache() {
            return new TestCache<Class<?>, V>()
        }
    
        @Override
        <V> CrossBuildInMemoryCache<Class<?>, V> newClassMap() {
            return new TestCache<Class<?>, V>()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt

     */
    @ServiceScope(Scope.Global::class)
    class BeanConstructors(
        cacheFactory: CrossBuildInMemoryCacheFactory
    ) {
        private
        val cache: CrossBuildInMemoryCache<Class<*>, Constructor<out Any>> = cacheFactory.newClassCache()
    
        fun constructorForSerialization(beanType: Class<*>): Constructor<out Any> {
            return cache.get(beanType) { -> createConstructor(beanType) }
        }
    
        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)
  5. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultCrossBuildInMemoryCacheFactoryTest.groovy

            def b = new Object()
            def c = new Object()
            def function = Mock(Function)
    
            given:
            function.apply(String) >> a
            function.apply(Long) >> b
    
            def cache = factory.newClassCache()
    
            expect:
            cache.get(String, function) == a
            cache.get(Long, function) == b
            cache.getIfPresent(String) == a
            cache.getIfPresent(Long) == b
    
            cache.put(String, c)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 11 20:23:28 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiationScheme.java

            this(constructorSelector, classGenerator, defaultServices, injectionAnnotations, cacheFactory.newClassCache());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CrossBuildInMemoryCacheFactory.java

         *
         * <p>Note: this should be used to create _only_ global scoped instances.
         */
        <V> CrossBuildInMemoryCache<Class<?>, V> newClassCache();
    
        /**
         * Creates a new map instance whose keys are Class instances. Keys are referenced using strong or weak references, values by strong or other references depending on their usage.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/project/taskfactory/DefaultTaskClassInfoStore.java

        private final CrossBuildInMemoryCache<Class<?>, TaskClassInfo> classInfos;
    
        public DefaultTaskClassInfoStore(CrossBuildInMemoryCacheFactory cacheFactory) {
            this.classInfos = cacheFactory.newClassCache();
        }
    
        @Override
        public TaskClassInfo getTaskClassInfo(Class<? extends Task> type) {
            return classInfos.get(type, aClass -> createTaskClassInfo(aClass.asSubclass(Task.class)));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:47 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultCrossBuildInMemoryCacheFactory.java

            listenerManager.addListener(cache);
            return cache;
        }
    
        @Override
        public <V> CrossBuildInMemoryCache<Class<?>, V> newClassCache() {
            // Should use some variation of DefaultClassMap below to associate values with classes, as currently we retain a strong reference to each value for one session after the ClassLoader
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 11 20:23:28 UTC 2021
    - 10.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/DefaultTypeMetadataStore.java

            this.displayName = calculateDisplayName(propertyAnnotationHandlers);
            this.propertyTypeResolver = propertyTypeResolver;
            this.cache = cacheFactory.newClassCache();
            this.missingPropertyAnnotationHandler = missingPropertyAnnotationHandler;
        }
    
        private static String calculateDisplayName(Collection<? extends PropertyAnnotationHandler> annotationHandlers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top