Package org.jasig.portal.utils.cache

Examples of org.jasig.portal.utils.cache.CacheFactory


                }

                if(CACHE_CHANNELS) {
                    // try to obtain rendering from cache
                    if(channel instanceof ICacheable ) {
                        final CacheFactory cacheFactory = CacheFactoryLocator.getCacheFactory();
                        final Map<Serializable, ChannelCacheEntry> systemCache = cacheFactory.getCache(SYSTEM_WIDE_CHANNEL_CACHE);
                       
                        ChannelCacheKey key=((ICacheable)channel).generateKey();
                        if (log.isTraceEnabled()) {
                            log.trace("Generated cache key " + (key != null ? key.getKey() : null) + " for worker " + this.toString());
                        }
View Full Code Here


        public void setCharacterCache(String chars) {
            cbuffer=chars;
            if(CACHE_CHANNELS) {
                // try to obtain rendering from cache
                if(channel instanceof ICacheable ) {
                    final CacheFactory cacheFactory = CacheFactoryLocator.getCacheFactory();
                    final Map<Serializable, ChannelCacheEntry> systemCache = cacheFactory.getCache(SYSTEM_WIDE_CHANNEL_CACHE);
                    ChannelCacheKey key=((ICacheable)channel).generateKey();
                    if(key!=null) {
                        if (log.isDebugEnabled()) {
                            log.debug("setCharacterCache() : called on a key \""+key.getKey()+"\"");
                        }
View Full Code Here

/**
* Returns a CompoundName parsed from key
*/
public Name parseCompoundKey(String key) throws NamingException
{
    final CacheFactory cacheFactory = CacheFactoryLocator.getCacheFactory();
    final Map<Serializable, Name> nameCache = cacheFactory.getCache(CacheFactory.NAME_CACHE);
    Name n = nameCache.get(key);
    if ( n == null )
    {
        n = getParser().parse(key);
        nameCache.put(key,n);
View Full Code Here

TOP

Related Classes of org.jasig.portal.utils.cache.CacheFactory

Copyright © 2018 www.massapicom. 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.