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

org.eweb4j.cache.InterConfigBeanCache Maven / Gradle / Ivy

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