/* JFox, the OpenSource J2EE Application Server
 *
 * Distributable under GNU LGPL license by gun.org
 * more details please visit http://www.huihoo.org/jfox
 */
package org.jfox.ejb.handler;

import java.util.Iterator;

/**
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */


public interface Interceptable {
    /**
     * 加入一个拦截器
     *
     * @param interceptor
     * @throws Exception
     */
    void addInterceptor(Interceptor interceptor) throws Exception;

    /**
     * 列出所有的拦截器
     *
     * @return
     */
    Iterator interceptors();
}