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

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

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

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

import panda.ioc.Ioc;
import panda.ioc.aop.config.AopConfigration;
import panda.ioc.aop.config.InterceptorPair;

/**
 * 整合多种AopConfigration
 */
public class ComboAopConfigration implements AopConfigration {

	private List aopConfigrations;

	public List getInterceptorPairList(Ioc ioc, Class clazz) {
		List interceptorPairs = new ArrayList();
		for (AopConfigration aopConfigration : aopConfigrations) {
			List ipList = aopConfigration.getInterceptorPairList(ioc, clazz);
			if (ipList != null && ipList.size() > 0)
				interceptorPairs.addAll(ipList);
		}
		return interceptorPairs;
	}

	public void setAopConfigrations(List aopConfigrations) {
		this.aopConfigrations = aopConfigrations;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy