protected void deactivate()

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


    protected void deactivate() {
        writeLock.lock();
        try {
            internalMap.clear();
            if (resourceChangeListener != null) {
                resourceChangeListener.unregister();
                resourceChangeListener = null;
            }
            if (threadPool != null) {
                threadPoolManager.release(threadPool);
                threadPool = null;
            }
            active = false;
        } finally {
            writeLock.unlock();
        }
    }