panda.ioc.aop.config.impl.JsonAopConfigration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-glue Show documentation
Show all versions of panda-glue Show documentation
Panda Glue is a ASM/AOP module of the Panda Framework.
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