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

ru.yandex.qatools.camelot.maven.web.ConfigurableCacheStrategy Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package ru.yandex.qatools.camelot.maven.web;

import org.springframework.context.ApplicationContext;
import ro.isdc.wro.cache.CacheKey;
import ro.isdc.wro.cache.CacheValue;

/**
 * @author Ilya Sadykov (mailto: [email protected])
 */
public class ConfigurableCacheStrategy extends ro.isdc.wro.cache.ConfigurableCacheStrategy {

    final ApplicationContext context;

    public ConfigurableCacheStrategy(ApplicationContext context) {
        this.context = context;
    }

    @Override
    public void put(CacheKey key, CacheValue value) {
        if (!key.getGroupName().equals("plugins")) {
            super.put(key, value);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy