1 /* JFox, the OpenSource J2EE Application Server2 *3 * Distributable under GNU LGPL license by gun.org4 * more details please visit http://www.huihoo.org/jfox5 */6 7 package org.jfox.ioc.connector;8 9 import java.lang.reflect.Method ;10 11 /**12 * Handler 是一个具体协议的响应器,比如:一个EJB Container13 *14 * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>15 */16 17 public interface Handler {18 19 /**20 * 该Handler负责处理的Invocation类型21 * @return22 */23 Class getInvocationClass();24 25 /**26 * 获得与Handler对应的Container27 * @return28 */29 Container getContainer();30 31 /**32 * execute the invcation33 * @param invocation34 * @return35 * @throws Throwable36 */37 Object execute(Invocation invocation) throws Throwable ;38 39 Method getMethodByHash(String hashId);40 }41