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

org.nutz.ioc.aop.config.impl.AnnotationAopConfigration Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.ioc.aop.config.impl;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

import org.nutz.aop.MethodInterceptor;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.aop.Aop;
import org.nutz.ioc.aop.SimpleAopMaker;

/**
 * 通过扫描@Aop标注过的Method判断需要拦截哪些方法
 * 
 * @author wendal([email protected])
 * 
 */
public class AnnotationAopConfigration extends SimpleAopMaker {

	public List makeIt(Aop t, Method method, Ioc ioc) {
		List list = new ArrayList();
		for (String name : t.value()) {
			list.add(ioc.get(MethodInterceptor.class, name));
		}
		return list;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy