1 /***
2 * JFoxSOAF, Service-Oriented Application Framework
3 *
4 * Copyright (C) www.huihoo.org
5 *
6 * Distributable under GNU LGPL For more information, please visit:
7 * http://www.huihoo.org/jfox/jfoxsoaf
8 */
9
10 package org.huihoo.jfox.soaf.container;
11
12 import java.util.Collection;
13 import java.util.Iterator;
14
15 /***
16 * InterceptorChain implementation.
17 *
18 * @author <a href="mailto:founder_chen@yahoo.com.cn">Peter Cheng </a>
19 * @version $Revision: 1.5 $ $Date: 2004/10/18 10:09:58 $
20 * @version Revision: 1.0
21 */
22
23 public class InterceptorChainImpl implements InterceptorChain {
24
25 /***
26 * Invoke intercetor stack.
27 *
28 * @param interceptorColl
29 * @param serviceEntryColl
30 * @param classLoader
31 * @throws Throwable
32 */
33 public void processInterceptor(Collection interceptorColl,
34 ServiceEntry serviceModel, ClassLoader classLoader)
35 throws Throwable {
36 Iterator interceptorIter = interceptorColl.iterator();
37 ServiceInterceptor serviceInterceptor = null;
38 while (interceptorIter.hasNext()) {
39 serviceInterceptor = (ServiceInterceptor) interceptorIter.next();
40 serviceInterceptor.invoke(serviceModel, classLoader);
41 }
42 }
43 }