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

org.needcoke.coke.web.interceptor.InterceptorCacheMgmt Maven / Gradle / Ivy

package org.needcoke.coke.web.interceptor;

import java.util.*;

public enum InterceptorCacheMgmt {

    instance;

    private final Map> cacheMap = new HashMap<>();

    public void addCache(String pattern,String interceptorName){
        if(!cacheMap.containsKey(pattern)){
            cacheMap.put(pattern,new ArrayList<>());
        }
        cacheMap.get(pattern).add(interceptorName);
    }

    public List get(String pattern){
        return cacheMap.get(pattern);
    }

    public Set keySet(){
        return cacheMap.keySet();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy