All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ro.isdc.wro.cache.spi.DefaultCacheStrategyProvider Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package ro.isdc.wro.cache.spi;

import java.util.HashMap;
import java.util.Map;

import ro.isdc.wro.cache.CacheKey;
import ro.isdc.wro.cache.CacheStrategy;
import ro.isdc.wro.cache.CacheValue;
import ro.isdc.wro.cache.impl.LruMemoryCacheStrategy;
import ro.isdc.wro.cache.impl.MemoryCacheStrategy;
import ro.isdc.wro.cache.impl.NoCacheStrategy;
import ro.isdc.wro.model.resource.support.naming.NamingStrategy;
import ro.isdc.wro.model.resource.support.naming.NamingStrategyProvider;


/**
 * Default implementation of {@link NamingStrategyProvider} providing all {@link NamingStrategy} implementations from
 * core module.
 *
 * @author Alex Objelean
 * @created 16 Jun 2012
 * @since 1.4.7
 */
public class DefaultCacheStrategyProvider
    implements CacheStrategyProvider {
 
  public Map> provideCacheStrategies() {
    final Map> map = new HashMap>();
    map.put(MemoryCacheStrategy.ALIAS, new MemoryCacheStrategy());
    map.put(LruMemoryCacheStrategy.ALIAS, new LruMemoryCacheStrategy());
    map.put(NoCacheStrategy.ALIAS, new NoCacheStrategy());
    return map;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy