
org.eweb4j.cache.InterConfigBeanCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eweb4j-all Show documentation
Show all versions of eweb4j-all Show documentation
easy web framework for java, full-stack
The newest version!
package org.eweb4j.cache;
import java.util.ArrayList;
import java.util.List;
import org.eweb4j.config.Log;
import org.eweb4j.config.LogFactory;
import org.eweb4j.mvc.config.bean.InterConfigBean;
/**
* 拦截器缓存
* @author CFurure.aw
*
*/
public class InterConfigBeanCache {
private static Log log = LogFactory.getMVCLogger(InterConfigBeanCache.class);
private static final List ht = new ArrayList();
public static List getList() {
return ht;
}
public static void add(InterConfigBean o) {
if (o != null) {
String info = null;
if (!ht.contains(o)) {
ht.add(o);
info = "add...finished..." + o;
log.debug(info);
}
}
}
public static void clear() {
if (!ht.isEmpty()) {
ht.clear();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy