Package org.apache.excalibur.store.impl

Examples of org.apache.excalibur.store.impl.MRUMemoryStore.hold()


            MRUMemoryStore store = getStore();
            final String cacheKey = getCacheKey(getPublicationId(), location);
            final String[] cachedUris = (String[]) store.get(cacheKey);
            if (cachedUris == null) {
                uris = findUris(location, parameters);
                store.hold(cacheKey, uris);
                if (getLogger().isDebugEnabled()) {
                    getLogger().debug("No cached source URI for key " + cacheKey + ", caching resolved URIs.");
                }
            } else {
                uris = cachedUris;
View Full Code Here


            final String cachedSourceUri = (String) store.get(cacheKey);

            if (cachedSourceUri == null) {
                source = findSource(location, parameters);
                final String resolvedSourceUri = source.getURI();
                store.hold(cacheKey, resolvedSourceUri);
                if (getLogger().isDebugEnabled()) {
                    getLogger().debug(
                            "No cached source URI for key " + cacheKey + ", caching URI "
                                    + resolvedSourceUri);
                }
View Full Code Here

                cachedMeta = null;
            }
        }
        if (cachedMeta == null) {
            cachedMeta = new CacheableMetaData(meta);
            store.hold(key, cachedMeta);
        }
        return cachedMeta;
    }

    protected String getCacheKey(String cacheKey, String namespaceUri) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.