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

panda.ioc.aop.config.impl.JsonAopConfigration Maven / Gradle / Ivy

The newest version!
package panda.ioc.aop.config.impl;

import java.util.ArrayList;
import java.util.List;

/**
 * 根据Json配置文件判断需要拦截哪些方法
 */
public class JsonAopConfigration extends AbstractAopConfigration {

	public void setItemList(List> itemList) {
		List aopItemList = new ArrayList();
		for (List list : itemList) {
			AopConfigrationItem item = new AopConfigrationItem();
			item.setName(list.get(0));
			item.setMethod(list.get(1));
			item.setInterceptor(list.get(2));
			if (list.size() == 4) {
				item.setSingleton(Boolean.parseBoolean(list.get(3)));
			}
			aopItemList.add(item);
		}
		super.setAopItemList(aopItemList);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy