component/src/main/java/org/wso2/carbon/caching/spi/CarbonCachingProvider.java
/**
     * Releases the CacheManager with the specified URI and ClassLoader
     * from this CachingProvider.  This does not close the CacheManager.  It
     * simply releases it from being tracked by the CachingProvider.
     * <p>
     * This method does nothing if a CacheManager matching the specified
     * parameters is not being tracked.
     * </p>
     *
     * @param uri         the URI of the CacheManager
     * @param classLoader the ClassLoader of the CacheManager
     */
Releases the CacheManager with the specified URI and ClassLoader
from this CachingProvider.  This does not close the CacheManager.  It
simply releases it from being tracked by the CachingProvider.

This method does nothing if a CacheManager matching the specified
parameters is not being tracked.

@param uri         the URI of the CacheManager
@param classLoader the ClassLoader of the CacheManager
Releases the CacheManager with the specified URI and ClassLoader from this CachingProvider . This does not close the CacheManager . It simply releases it from being tracked by the CachingProvider . This method does nothing if a CacheManager matching the specified parameters is not being tracked . @param uri the URI of the CacheManager @param classLoader the ClassLoader of the CacheManager
public synchronized void releaseCacheManager(URI uri, ClassLoader classLoader) {
        URI managerURI = uri == null ? getDefaultURI() : uri;
        ClassLoader managerClassLoader = classLoader == null ? getDefaultClassLoader() : classLoader;
        HashMap<URI, CacheManager> cacheManagersByURI = cacheManagersByClassLoader.get(managerClassLoader);
        if (cacheManagersByURI != null) {
            cacheManagersByURI.remove(managerURI);
            if (cacheManagersByURI.size() == 0) {
                cacheManagersByClassLoader.remove(managerClassLoader);
            }
        }
    }
public synchronized void releaseCacheManager ( URI uri , ClassLoader classLoader ) { URI managerURI = uri == null ? getDefaultURI ( ) : uri ; ClassLoader managerClassLoader = classLoader == null ? getDefaultClassLoader ( ) : classLoader ; HashMap < URI , CacheManager > cacheManagersByURI = cacheManagersByClassLoader . get ( managerClassLoader ) ; if ( cacheManagersByURI != null ) { cacheManagersByURI . remove ( managerURI ) ; if ( cacheManagersByURI . size ( ) == 0 ) { cacheManagersByClassLoader . remove ( managerClassLoader ) ; } } }
Releases the CacheManager with the specified URI and ClassLoader
 from this CachingProvider.
Releases the CacheManager with the specified URI and ClassLoader from this CachingProvider .