protected void activate()

in src/main/java/org/apache/sling/scripting/core/impl/ScriptCacheImpl.java [203:216]


    protected void activate(ScriptCacheImplConfiguration configuration, BundleContext bundleCtx) {
        threadPool = threadPoolManager.get("Script Cache Thread Pool");
        bundleContext = bundleCtx;
        additionalExtensions = configuration.org_apache_sling_scripting_cache_additional__extensions();
        int newMaxCacheSize = configuration.org_apache_sling_scripting_cache_size();
        if (newMaxCacheSize != DEFAULT_CACHE_SIZE) {
            // change the map only if there's a configuration change regarding the cache's max size
            CachingMap<CachedScript> newMap = new CachingMap<>(newMaxCacheSize);
            newMap.putAll(internalMap);
            internalMap = newMap;
        }
        active = true;
        configureCache();
    }